FlexReport for .NET | ComponentOne
C1.Document Assembly / C1.Ssrs Namespace / ReportSession Class / GetPageCount Method
ReportSession.ReportFormat object specifies the report format.
PageLayout object specifies the page settings, this parameter used only for PDF and IMAGE formats.
System.Threading.CancellationToken that can be used to cancel an action.

In This Topic
    GetPageCount Method (ReportSession)
    In This Topic
    Returns count of pages in the report.
    Syntax
    'Declaration
     
    Public Function GetPageCount( _
       ByVal format As ReportSession.ReportFormat, _
       ByVal pageLayout As PageLayout, _
       ByVal cancellationToken As CancellationToken _
    ) As Integer

    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.
    See Also