I have 1 wingrid on each page being exported. But the first pages grid has different number of columns then the rest.
The PDF pages widths are not the same. How can I get the pages to be the same size and have the grids fill the width of the pages?
I have been playing around with he grids width size and the columns autoresize properties but no good result as of yet.
At the beginning I set the report objs page size as {2000,1000}. But on do the GridDocExport cmd I see the page size gets reset.
And even if I do a page resize right after that the result is not what I expected.
Hope that made sense.
Deasun
Hi Deasun,
PDF doesn't have any support for spanning objects across multiple horizontal pages. So the DocumentExporter always tries to fit the grid into a single page width. If the grid is already smaller than a page, then it will not decrease the width of the section, but if the grid is larger, then the width and height of the section will be increased so that the grid fits within the width of the page and then the height of the page is adjusted proportionally.
So therefore, if you try to export 2 grids into the same Section of the report, it will not work correctly, because the second grid will change the page size of the Section and overwrite the size established by the first export.
If you are exporting more than one grid into a report, the best thing to do is generally to export each grid to it's own dedicated Section.
Thanks for the reply.
Not sure if you understand what I am trying to do.
On each page I have a grid. On the first page that grid has less columns then will appear on each page after it.
What I want is a all pages in the PDF to be the same size. And each grid to appear to stretch from Left margin to Right margin on its page.
So if I set the Sections Page size say to (2000, 1000), and say the margins are 25.
Then the grids width should be 1950.
But when I do the DocExport Sections Page size resizes itself.
Mgt really wants the pages the same size in landscape and the grids to fit the page. :(