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


IReportViewerMessages3.TotalPages Method

Returns the string in the default toolbar that represents the total number of pages in the current report and the PageCountMode that was used to determine it.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.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 total number of pages in the current report.
  • pageCountMode
    Indicates whether the pageCount parameter represents an estimated or actual number of pages.

Return Value

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

Remarks

When the total number of pages is an estimated total, the returned string replaces both the page count and the default ? symbol in the toolbar.

See Also

Reference

IReportViewerMessages3 Interface
IReportViewerMessages3 Members
Microsoft.Reporting.WinForms Namespace