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
700
ultragridDocumentExporter - Page truncation - screen resolution
posted

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.PaperOrientation = Infragistics.Documents.Report.Preferences.Printing.PaperOrientation.Landscape;

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

Parents
  • 469350
    Verified Answer
    Offline posted

    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.  

Reply Children