IReportViewerMessages3.TotalPages Method (Int32, PageCountMode)
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
string TotalPages(
int pageCount,
PageCountMode pageCountMode
)
String^ TotalPages(
int pageCount,
PageCountMode pageCountMode
)
abstract TotalPages :
pageCount:int *
pageCountMode:PageCountMode -> string
Function TotalPages (
pageCount As Integer,
pageCountMode As PageCountMode
) As String
Parameters
pageCount
Type: System.Int32The total number of pages in the current report.
pageCountMode
Type: Microsoft.Reporting.WinForms.PageCountModeIndicates whether the pageCount parameter represents an estimated or actual number of pages.
Return Value
Type: System.String
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
IReportViewerMessages3 Interface
Microsoft.Reporting.WinForms Namespace
Return to top