ServerReport.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 override int GetTotalPages(
out PageCountMode pageCountMode
)
public:
virtual int GetTotalPages(
[OutAttribute] PageCountMode% pageCountMode
) override
override GetTotalPages :
pageCountMode:PageCountMode byref -> int
Public Overrides 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 used to calculate the total number of soft 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
For more information, see the GetTotalPages method of the M:Microsoft.Reporting.WinForms.Report class.
When the ReportViewer control is in print layout mode, pageCountMode is always T:Microsoft.Reporting.WinForms.PageCountMode.Actual.
See Also
GetTotalPages Overload
ServerReport Class
Microsoft.Reporting.WinForms Namespace
Return to top