Método Report.GetTotalPages
Returns the total number of soft pages in the report.
Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (em Microsoft.ReportViewer.WebForms.dll)
Sintaxe
'Declaração
Public Function GetTotalPages As Integer
public int GetTotalPages()
public:
int GetTotalPages()
member GetTotalPages : unit -> int
public function GetTotalPages() : int
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
The page count mode that is used to generate the total number of pages depends on how the report is rendered by the Report object. If the report is rendered using the Actual mode, GetTotalPages uses the Actual page count mode. If the report is rendered using the Estimate mode, GetTotalPages may use either the Actual or Estimate mode depending on the report. By default, the Estimate mode is used to calculate the page count. For more information, see the PageCountMode class and the Render method.
To retrieve the page count mode used to calculate the total number of pages, use GetTotalPages.