We are using a custom print dialog. When printing in Landscape orientation, the PageSize and Orientation are properly set on ReportSettings class, but the right side of the document is cut off. When i look at the values while debugging, I see the following values:
ReportSettings.PageOrientation = Landscape
ReportSettings.PageSize = {1056, 816}
ReportSettings.PageSizeResolved = {816, 816} <-- Likely the problem here?
Here is my below code. We're using the latest 13.2 release.
report.ReportSettings.PageOrientation = dlg.PrintTicket.PageOrientation != null ? (dlg.PrintTicket.PageOrientation == System.Printing.PageOrientation.Landscape ? PageOrientation.Landscape : PageOrientation.Portrait) : PageOrientation.Landscape; report.ReportSettings.PrintQueue = dlg.PrintQueue; report.ReportSettings.PageRange = dlg.PageRange; report.ReportSettings.PageSize = new Size(dlg.PrintableAreaWidth, dlg.PrintableAreaHeight);
The documentation for the ReportSettings.PageSize property say that the size should be picked up from the PrintQueue object, but that doesn't appear to be happening.
Anyone?
Hello Dierk,
Thank you for your post. I have been looking into the scenario that you are having and I could not managed to reproduce it. Would you please, if possible, provide me with a sample application that is showing the issue, in order to be able to research what might be causing it?
Looking forward to hearing from you.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support