Progress® Telerik® Reporting R3 2017

ReportViewerBaseTotalPages Property

Gets the count of the available pages in the viewer.

Namespace:  Telerik.ReportViewer.WinForms
Assembly:  Telerik.ReportViewer.WinForms (in Telerik.ReportViewer.WinForms.dll)

Syntax

public int TotalPages { get; }

Property Value

Type: Int32

Examples

// Go to the middle of the report
private void button11_Click(object sender, System.EventArgs e)
{
    var middlePage = this.reportViewer1.TotalPages / 2;
    this.reportViewer1.CurrentPage = middlePage;
}

See Also