ReportViewer.GetTotalPages Method (PageCountMode)
Returns the page count of the report and a PageCountMode value that indicates whether the page count is estimated or actual.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
public int GetTotalPages(
out PageCountMode pageCountMode
)
public:
int GetTotalPages(
[OutAttribute] PageCountMode% pageCountMode
)
member GetTotalPages :
pageCountMode:PageCountMode byref -> int
Public Function GetTotalPages (
<OutAttribute> ByRef pageCountMode As PageCountMode
) As Integer
Parameters
pageCountMode
Type: Microsoft.Reporting.WinForms.PageCountModeWhen this method returns, contains a PageCountMode enumeration value that indicates whether the return value should be treated as an estimate or actual page count. This value is always Actual when DisplayMode is PrintLayout. This parameter is passed uninitialized.
Return Value
Type: System.Int32
An integer value containing the total number of pages in the report.
Remarks
For more information, see the GetTotalPages method.
See Also
GetTotalPages Overload
ReportViewer Class
Microsoft.Reporting.WinForms Namespace
Return to top