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
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).
You are correct. :)
Using only one section. Makes sense now.
Using the WinGridDocumentExporter.
I fixed my issue by changing the target paper size to A3 landscape.
Thanks for the quick reply.