Symptom
Print from WPF viewer will not print a landscape report
Environment
Crystal reports for Visual Studio
Visual Studio 2013
Reproducing the Issue
Create a simple report and format the page to landscape
Create a simple WPF app in VS 2013 and try to print that report:
private void button5_Click(object sender, RoutedEventArgs e)
{ CrystalDecisions.CrystalReports.Engine.ReportDocument doc = new Cryst CrystalDecisions.CrystalReports.Engine.ReportDocument();
doc.Load(@"D:\Atest\DonReport1.rpt");
crystalReportsViewer2.ViewerCore.PrintReport();
}
As a temporary work around disable the print button in the WPF viewer and add your own using
doc.PrintToPrinter(1, true, 1, 1); }
Resolution
Issue has been fixed in SP 17 for Windows 10 only.
Downloads for Service Packs are here:
http://scn.sap.com/docs/DOC-7824
New case will be created for Windows Server 2012 R2.
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem