Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the total number of soft pages in the report and a PageCountMode enumeration 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 ReprotViewer control is in print layout mode, pageCountMode is always T:Microsoft.Reporting.WinForms.PageCountMode.Actual.
See Also
GetTotalPages Overload
LocalReport Class
Microsoft.Reporting.WinForms Namespace
Return to top