ServerReport.GetTotalPages-Methode
Retrieves the total number of logical pages for the server report.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)
Syntax
'Declaration
'Usage
Rückgabewert
An integer value containing the total number of logical pages in the report.
Hinweise
GetTotalPages should be called only after the local report is completely rendered. You can use the RenderingComplete event of the control to determine when report rendering finishes.
Because this method returns the number of logical pages in the report, the value returned may not match the number of physical pages in the report.
Beispiel
private void button1_Click(object sender, EventArgs e)
{
int iTotalPages = this.reportViewer1.ServerReport.GetTotalPages();
}
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim iTotalPages as Integer
iTotalPages = ReportViewer1.ServerReport.GetTotalPages
End Sub
Siehe auch
Verweis
ServerReport-Klasse
ServerReport-Member
Microsoft.Reporting.WinForms-Namespace