Поделиться через


IReportViewerMessages3.TotalPages Method

Returns the string in the default toolbar that represents the total number of pages in the current report and the page count mode that is used.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
Function TotalPages ( _
    pageCount As Integer, _
    pageCountMode As PageCountMode _
) As String
'Usage
Dim instance As IReportViewerMessages3
Dim pageCount As Integer
Dim pageCountMode As PageCountMode
Dim returnValue As String

returnValue = instance.TotalPages(pageCount, pageCountMode)
string TotalPages (
    int pageCount,
    PageCountMode pageCountMode
)
String^ TotalPages (
    int pageCount, 
    PageCountMode pageCountMode
)
String TotalPages (
    int pageCount, 
    PageCountMode pageCountMode
)
function TotalPages (
    pageCount : int, 
    pageCountMode : PageCountMode
) : String

Parameters

  • pageCount
    The number of pages in the current report.
  • pageCountMode
    Indicates whether the pageCount parameter represents an estimate or the actual number of pages.

Return Value

A localized string that represents the total number of pages and the page count mode.

See Also

Reference

IReportViewerMessages3 Interface
IReportViewerMessages3 Members
Microsoft.Reporting.WebForms Namespace