I've got a report that I created in Crystal Reports for Visual Studio 2010.
The report is set to landscape. If I create an instance of the report, load it with data and print it using the following code, it prints in landscape as expected.
var rpt = new MyReport();
rpt.SetDataSource(dataSource);
rpt.PrintToPrinter(1, false, 1, int.MaxValue);
If I view the report in the Crystal Report viewer control for WPF using the following code, the report is shown correctly in landscape mode.
var rpt = new MyReport();
rpt.SetDataSource(dataSource);
ReportViewer.ViewerCore.ReportSource = rpt;
However, if I click the Print button in the Crrystal Report Viewer control, the print comes out as portrait, truncating the right side of the report and not filling the page top to bottom.
Is there a fix for this?