Share via


LocalReport.GetTotalPages Method (out PageCountMode)

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

'Declaration
Public Overrides Function GetTotalPages ( _
    <OutAttribute> ByRef pageCountMode As PageCountMode _
) As Integer
'Usage
Dim instance As LocalReport
Dim pageCountMode As PageCountMode
Dim returnValue As Integer

returnValue = instance.GetTotalPages(pageCountMode)
public override int GetTotalPages (
    out PageCountMode pageCountMode
)
public:
virtual int GetTotalPages (
    [OutAttribute] PageCountMode% pageCountMode
) override
public 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 used to calculate the total number of soft 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

For more information, see the GetTotalPages method of the Report class.

When the ReprotViewer control is in print layout mode, pageCountMode is always Actual.

See Also

Reference

LocalReport Class
LocalReport Members
Microsoft.Reporting.WinForms Namespace