ComponentOne ReportViewer for ASP.NET Web Forms
C1.C1Report.4 Assembly / C1.C1Preview Namespace / OutputRange Class / GetNextPage Method / GetNextPage(Int32,Int32) Method
The current page number.
A cookie used to avoid infinite loops in cases where the same page number appears in several ranges. Set this value to 0 before the first call to this method.

In This Topic
    GetNextPage(Int32,Int32) Method
    In This Topic
    Returns the page number in the range following the specified one, or -1 if the specified number was the last one.
    Syntax
    'Declaration
     
    Public Overloads Function GetNextPage( _
       ByVal pageNumber As System.Integer, _
       ByRef cookie As System.Integer _
    ) As System.Integer
    public System.int GetNextPage( 
       System.int pageNumber,
       ref System.int cookie
    )

    Parameters

    pageNumber
    The current page number.
    cookie
    A cookie used to avoid infinite loops in cases where the same page number appears in several ranges. Set this value to 0 before the first call to this method.

    Return Value

    The next page number or -1 if there's none.
    See Also