Version

LogicalPagePartNumber Property (EmbeddedVisualReportSection)

The logical page part number of the current page being printed within this section (read-only).
Syntax
'Declaration
 
Public Overrides ReadOnly Property LogicalPagePartNumber As Integer
public override int LogicalPagePartNumber {get;}

Property Value

A 1-based integer representing the logical page part number of the current page being printed within this section.
Remarks

Note: if the logical page is not wide enough to span multiple pages or the Infragistics.Windows.Reporting.ReportSettings.HorizontalPaginationMode property is set to 'Scale' then this property will return 1.

Example
This example shows how to get and use EmbeddedVisualReportSection.LogicalPagePartNumber

'Define an Event Handler 
    Public Sub WritePage(ByVal sender As Object, ByVal e As PrintProgressEventArgs)
        Me.Label1.Content = section.LogicalPagePartNumber.ToString()
    End Sub

Private  Sub ShowEmbeddedVisualReportSectionLogicalPagePartNumber()
    ' 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 EmbeddedVisualReportSection.LogicalPagePartNumber
	 AddHandler reportObj.PrintProgress, AddressOf Me.WritePage

 
    ' 5. Call print method
    reportObj.Print(True, False)
End Sub
private void ShowEmbeddedVisualReportSectionLogicalPagePartNumber()
{
    // 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 EmbeddedVisualReportSection.LogicalPagePartNumber
	reportObj.PrintProgress += delegate(object sender, PrintProgressEventArgs e)
	{
		Label1.Content = section.LogicalPagePartNumber.ToString();
	};
	
    // 5. Call print method
    reportObj.Print(true, false);
}
Requirements

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

See Also