[]
Returns count of pages in the report.
public int GetPageCount(ReportSession.ReportFormat format, PageLayout pageLayout, CancellationToken cancellationToken)
Type | Name | Description |
---|---|---|
ReportSession.ReportFormat | format | ReportSession.ReportFormat object specifies the report format. |
PageLayout | pageLayout | PageLayout object specifies the page settings, this parameter used only for PDF and IMAGE formats. |
CancellationToken | cancellationToken | CancellationToken that can be used to cancel an action. |
Type | Description |
---|---|
int | Count of pages or -1 if actions was canceled. |