Posted 3 August 2017, 3:20 pm ESTHello,
Using the Web Report Viewer to display a pdf format in landscape doesn't seem to work well in version 1.6.2260.3. A report that rendered fine in version 1.6.2084.14 in 7 pages now renders with lots of page overruns into 17 pages.
The code we've been using to set the landscape option is as follows -
if (runtime.ReportDefinition.Report.PaperOrientation == DataDynamics.Reports.ReportObjectModel.PaperOrientation.Landscape)
if (runtime.ReportDefinition.Report.PageWidth >
//swap width/height to the way DDR WebViewer wants it for PDF Landscape
DataDynamics.Reports.Extensibility.Definition.Components.Length l1 = runtime.ReportDefinition.Report.PageWidth;
DataDynamics.Reports.Extensibility.Definition.Components.Length l2 = runtime.ReportDefinition.Report.PageHeight;
runtime.ReportDefinition.Report.PageWidth = l2;
runtime.ReportDefinition.Report.PageHeight = l1;
Any feedback on this would be appreciated.