'Declaration Public Overrides ReadOnly Property ReportSettings As ReportSettings
public override ReportSettings ReportSettings {get;}
Private Sub SetReportSettings() Dim reportObj As New Report() ' set print order. it can be first left than down (horizontal) or first(down than left(vertical) reportObj.ReportSettings.PagePrintOrder = PagePrintOrder.Horizontal ' set scale mode reportObj.ReportSettings.HorizontalPaginationMode = HorizontalPaginationMode.Mosaic Dim section As New EmbeddedVisualReportSection(XamDataGrid1) reportObj.Sections.Add(section) progressInfo.Report = reportObj reportObj.Print(False) End Sub
private void SetReportSettings() { Report reportObj = new Report(); // set print order. it can be first left than down (horizontal) or first(down than left(vertical) reportObj.ReportSettings.PagePrintOrder = PagePrintOrder.Horizontal; // set scale mode reportObj.ReportSettings.HorizontalPaginationMode = HorizontalPaginationMode.Mosaic; EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); reportObj.Sections.Add(section); progressInfo.Report = reportObj; reportObj.Print(false); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2