Partilhar via


Método Report.GetTotalPages (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 (em Microsoft.ReportViewer.WinForms.dll)

Sintaxe

'Declaração
Public MustOverride Function GetTotalPages ( _
    <OutAttribute> ByRef pageCountMode As PageCountMode _
) As Integer
public abstract int GetTotalPages(
    out PageCountMode pageCountMode
)
public:
virtual int GetTotalPages(
    [OutAttribute] PageCountMode% pageCountMode
) abstract
abstract GetTotalPages : 
        pageCountMode:PageCountMode byref -> int 
public abstract function GetTotalPages(
    pageCountMode : PageCountMode
) : int

Parâmetros

Valor de retorno

Tipo: Int32
An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors.

Comentários

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 Actualpagecountmode.

Consulte também

Referência

Report Classe

Sobrecargas GetTotalPages

Namespace Microsoft.Reporting.WinForms