Поделиться через


ReportViewer.GetTotalPages Method (out PageCountMode)

Returns the page count of the report and a PageCountMode value that indicates whether the page count is estimated or actual.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

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

returnValue = instance.GetTotalPages(pageCountMode)
public int GetTotalPages (
    out PageCountMode pageCountMode
)
public:
int GetTotalPages (
    [OutAttribute] PageCountMode% pageCountMode
)
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 whether the return value should be treated as an estimate or actual page count. This value is always Actual when DisplayMode is PrintLayout.

Return Value

An integer value containing the total number of pages in the report.

Remarks

For more information, see the GetTotalPages method.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace