'宣言 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); }