Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1825
wingrid and exporting to PDF, width issue?
posted
 Morning,

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

Parents
  • 469350
    Suggested Answer
    Offline posted

    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.

Reply Children