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
Creating PDF doc from multiple winGrids
posted

Hello,

I have an issue were the last few columns of a wingrid is getting lost. not appearing on the page.

The PDF doc gets fed 5 different wingrids.

Each grid has a different set of columns. The bigger ones seem to be dropping off the last few columns.

In my current one the 10th column is about 25% showing.

How do I get the doc to expand the width to allow the widest wingrid fit on the page?

I have tried:  section.PageSize = New Infragistics.Documents.Report.PageSize(2000, 792)  ' doesnt seem to do anything!

But it doesn't seem to effect anything.

Thanks

Deasun

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Deasun,

    How are you exporting the grid? Which overload of the Export method are you using?

    My guess is that you are creating a Report and a single ISection and you are exporting all of your grid to the same ISection. This won't work for mulitple grids, because the exporter changes the PageSize of the section so that the grid fits within a single page of width. So if you export a grid to the section, the page width is set. If you export another grid to the same section, the page width is set again and if the second grid is smaller, the parts of the first grid may be cut off.

    So what you should do is export each grid to a separate section (or just export to the report, in which case the exporter will create a new section for you).

Reply Children
No Data