CrystalReportViewer.ShowNthPage Method

Shows the specified page of the report.

Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

Syntax

'Declaration
Public Overrideable Sub ShowNthPage ( _
    ByVal PageNumber As Integer _   
) 
public virtual void ShowNthPage (
    int PageNumber
)

Parameters

  • PageNumber
    Indicates the page number to show in the CrystalReportViewer control.

Remarks

If the page number is greater then the total number of pages in the report, the last page of the report is shown. If the page number is less than one, then this method does nothing.

Example

This example displays the page specified.

'Declaration

    Private Sub ShowNthPageOfReport(ByVal myPageNumber As Integer)
      CrystalReportViewer.ShowNthPage(myPageNumber)
    End Sub
    private void ShowNthPageOfReport(int pageNumber)
    {
      crystalReportViewer.ShowNthPage(pageNumber);
    }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Windows.Forms Namespace