レポートに複数セクションがある場合、このプロパティはセクションからセクションへと続行します。
注:Infragistics.Windows.Reporting.ReportSettings.HorizontalPaginationMode プロパティは「Scale」に設定する場合、このプロパティは Infragistics.Windows.Reporting.ReportSettings.HorizontalPaginationMode と同じ値を返します。
'Define an Event Handler Public Sub WritePage(ByVal sender As Object, ByVal e As PrintProgressEventArgs) Me.Label1.Content = reportObj.PhysicalPageNumber.ToString() End Sub Private Sub ShowPhysicalPageNumber() ' 1. Create Report object Dim reportObj As Report = New Report() ' 2. Create EmbeddedVisualReportSection section. ' Put the grid you want to print as a parameter of section's constructor Dim section As EmbeddedVisualReportSection = New EmbeddedVisualReportSection(XamDataGrid1) ' 3. Add created section to report's section collection reportObj.Sections.Add(section) ' Optional. If you have progress indicator set its Report property to created report progressInfo.Report = reportObj ' 4. Add delegate that calculates PhysicalPageNumber AddHandler reportObj.PrintProgress, AddressOf Me.WritePage ' 5. Call print method reportObj.Print(True, False) End Sub
private void ShowPhysicalPageNumber() { // 1. Create Report object Report reportObj = new Report(); // 2. Create EmbeddedVisualReportSection section. // Put the grid you want to print as a parameter of section's constructor EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1); // 3. Add created section to report's section collection reportObj.Sections.Add(section); // Optional. If you have progress indicator set its Report property to created report progressInfo.Report = reportObj; // 4. Add delegate that calculates PhysicalPageNumber reportObj.PrintProgress += delegate(object sender, PrintProgressEventArgs e) { Label1.Content = reportObj.PhysicalPageNumber.ToString(); }; // 5. Call print method reportObj.Print(true, false); }
Report クラス
Report メンバ
LogicalPageNumber プロパティ
LogicalPagePartNumber プロパティ
SectionLogicalPageNumber プロパティ
SectionLogicalPagePartNumber プロパティ
SectionPhysicalPageNumber プロパティ
Infragistics.Windows.Reporting.ReportSettings.HorizontalPaginationMode
Infragistics.Windows.Reporting.ReportSettings.PagePrintOrder