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
2395
Landscape Orientation with Custom Print Dialog
posted

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.LandscapePageOrientation.Portrait)
				: PageOrientation.Landscape;
			report.ReportSettings.PrintQueue	= dlg.PrintQueue;
			report.ReportSettings.PageRange		= dlg.PageRange;
			report.ReportSettings.PageSize		= new Size(dlg.PrintableAreaWidthdlg.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.

Parents Reply Children
No Data