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 名前空間