Report.GetTotalPages Method (PageCountMode)
Returns the total number of soft pages in the report and a PageCountMode value that indicates the current page count mode.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
public abstract int GetTotalPages(
out PageCountMode pageCountMode
)
public:
virtual int GetTotalPages(
[OutAttribute] PageCountMode% pageCountMode
) abstract
abstract GetTotalPages :
pageCountMode:PageCountMode byref -> int
Public MustOverride Function GetTotalPages (
<OutAttribute> ByRef pageCountMode As PageCountMode
) As Integer
Parameters
pageCountMode
Type: Microsoft.Reporting.WinForms.PageCountMode[out] A PageCountMode enumeration value that indicates the page count mode that was used to calculate the total number of pages.
Return Value
Type: System.Int32
An integer value containing the total number of soft pages in the report. For more information on soft pages, see .d57866f5-d876-41ce-bc49-0e72486a9617
Remarks
Use this method to retrieve the page count mode along with the total number of pages. For more information, see GetTotalPages and PageCountMode.
When the ReportViewer control is in print layout mode, this method always uses the T:Microsoft.Reporting.WinForms.PageCountMode.Actual page count mode.
See Also
GetTotalPages Overload
Report Class
Microsoft.Reporting.WinForms Namespace
Return to top