'Declaration Public Function GetPageCount( _ ByVal format As ReportSession.ReportFormat, _ ByVal pageLayout As PageLayout, _ ByVal cancellationToken As CancellationToken _ ) As Integer
public int GetPageCount( ReportSession.ReportFormat format, PageLayout pageLayout, CancellationToken cancellationToken )
Parameters
- format
- ReportSession.ReportFormat object specifies the report format.
- pageLayout
- PageLayout object specifies the page settings, this parameter used only for PDF and IMAGE formats.
- cancellationToken
- System.Threading.CancellationToken that can be used to cancel an action.
Return Value
Count of pages or -1 if actions was canceled.