Hi,
I have an issue in printing ultrawingrid using document exporter.
I need to print 4 grids in one page and below is the code used.
*********************************************************************************************
Infragistics.Documents.Report.Report report = new Infragistics.Documents.Report.Report();
report.Preferences.Printing.PaperSize = Infragistics.Documents.Report.Preferences.Printing.PaperSize.A4;
Infragistics.Documents.Report.Section.ISection section = report.AddSection();
this.ugrdDocExporter.Export(grid1, section);
this.ugrdDocExporter.Export(grid2, section);
this.ugrdDocExporter.Export(grid3, section);
report.Print(printername);
*******************************************************************************************
It prints properly on a system that has a resolution of 1024 / 768 but data gets truncated for the resolution 1440 / 900.
Is it a bug in the control or some property missing ?
Thx.
Cheers
The Export method is going to set the PageSize on the section based on the size of the grid. So if you export 4 grids to the same section, then the PageSize of the section will be set 4 times and only the last grid's size will be taken into account. It would probably be better for you to use 4 sections in the same report. Or, perhaps check the section.PageSize after each export and keep track of the largest one, then set the PageSize of the section to the largest size after the last export, but before printing.
Hi Mike,
I cant use 4 sections as I need all the grids to be printed in the same page.
I now export the grid which has highest width as the 4th grid into the section. But still it gets truncated.
When I checked the section.PageSize.Width it shows 684 for 1024*768 but 932.25 for 1440*900 which is more than the width of screen.
Moreover the property section.PageSize.Width is read only. I can set only the page size as A4 or legal etc.
When I set the property report.Preferences.Printing.FitToMargins to true then even the smaller grid strecthes which means poor readability.
Do let me know how can i resolve it.
Thanks