ServerReport.GetTotalPages 方法

Retrieves the total number of logical pages for the server report.

命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms (在 microsoft.reportviewer.webforms.dll 中)

语法

声明
用法

返回值

An integer value containing the total number of logical pages in the report.

备注

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.

示例

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

另请参见

参考

ServerReport 类
ServerReport 成员
Microsoft.Reporting.WebForms 命名空间