[]
        
(Showing Draft Content)

C1.Ssrs.ReportSession.GetPageCount

GetPageCount Method

GetPageCount(ReportFormat, PageLayout, CancellationToken)

Returns count of pages in the report.

Declaration
public int GetPageCount(ReportSession.ReportFormat format, PageLayout pageLayout, CancellationToken cancellationToken)
Parameters
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.

Returns
Type Description
int

Count of pages or -1 if actions was canceled.