Report.GetTotalPages Method (out 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
'Declaration
Public MustOverride Function GetTotalPages ( _
<OutAttribute> ByRef pageCountMode As PageCountMode _
) As Integer
'Usage
Dim instance As Report
Dim pageCountMode As PageCountMode
Dim returnValue As Integer
returnValue = instance.GetTotalPages(pageCountMode)
public abstract int GetTotalPages (
out PageCountMode pageCountMode
)
public:
virtual int GetTotalPages (
[OutAttribute] PageCountMode% pageCountMode
) abstract
public abstract int GetTotalPages (
/** @attribute OutAttribute() */ /** @ref */ PageCountMode pageCountMode
)
JScript does not support passing value-type arguments by reference.
Parameters
- pageCountMode
[out] A PageCountMode enumeration value that indicates the page count mode that was used to calculate the total number of pages.
Return Value
An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors.
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 Actual page count mode.
See Also
Reference
Report Class
Report Members
Microsoft.Reporting.WinForms Namespace