Hello all,
I have 2 charts on a pdf page. They appear one after the other.
I would like them to appear side by side on the page?
Not seeing a way to do this. Any help would be appreciated.
Thanks
Deasun
{vb.net :) }
Hello Deasun,
It looks like the new sample you provided removed some of the lines of code (from previous posts) that are necessary to stretch the grids to fit the width of the page. The multiple lines that set the PageSize of each specific section are necessary due to the grid exporting changing the section's PageSize. Additionally, the previously provided code to stretch the grid relies on setting the grid's width based on the temporary exported grid's size (see GetExportSize()). Once I put this code back in the place the grids were properly stretching the width of the page.
Another thing that had to change in the sample was were you were changing the PageOrientation and PageSize. The code was changing the PageSize so it was wider than it was talk (i.e. looks landscape) but also changing the orientation to Landscape. I believe internally this was causing the page to be rotated, and thus become taller than it is wide. I don't think setting the PageOrientation is necessary here, and seems to work without it. You could probably adjust the code so the PageOrientation is Landscape, and the PageSize is taller than it is wide, but you would have to adjust all the other code that relies on the Page size (such as the chart size code).
I've attached my updated sample.
The documentation for the Infragistics Document Engine can be found here. There is no real simple overview due to the complex nature of the engine. There is just so much you can do in terms of nesting report objects.
I hope this helps.
Chris
Is there a Overview documentation somewhere of the Infragistics.Documents.Reports
Like how its made up.
Example. Real basic stuff!
Report
Page
Sections
Hello me again.
Mgt wanted me to change to Lanscape from Protrait and after doing so things went haywire again.
1] All 3 pages should be same size.
2] Grids on all pages should fit from margin to margrin.
We are all getting a bit frustrated with this.
Attached is the test project.
Hello Deasun
I'm not totally sure what you are asking here.
By default, the exporter will size the columns to fit the data. However, you can specify the size of the column using the Width property which we are already doing in the UltraGridDocumentExport's ExportStarted event handler. This is how we were able to extend the grid so it filled the width of the page. There is also a MaxWidth property on the column that is honored to prevent a column from getting too large. Keep in mind that if you force a column to be a certain width or maintain a maximum width, you will most likely need to rework the algorithm in UltraGridDocumentExporter_ExportStarted to the grid extends to the width of the page.
Thanks very much.
Definitely pointed us in the right direction.
PDF is much better now.
Still a sleight bit off for the bosses.
I was wondering, is there a way to set the columns to a MAX fixed width value.
Say that we know will fit a value like $999,999,999.99 then all the grids should be the same size.
thanks