Share via


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.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.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.

See Also

Reference

Report Class
Report Members
Microsoft.Reporting.WebForms Namespace