ReportViewer.GetTotalPages Method ()

 

Returns the total number of pages in the report.

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

Syntax

public int GetTotalPages()
public:
int GetTotalPages()
member GetTotalPages : unit -> int
Public Function GetTotalPages As Integer

Return Value

Type: System.Int32

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

Remarks

When the report is displayed in normal mode (DisplayMode is Normal), this method returns the same value as GetTotalPages in LocalReport or ServerReport, depending on the current value of ProcessingMode. When the report is displayed in print layout mode (DisplayMode is F:Microsoft.Reporting.WinForms.DisplayMode.PrintLayout), this method returns the total number of pages that have been generated currently. If report pages are still being generated (the RenderingComplete event is not yet triggered), this value will update as more pages are generated.

See Also

GetTotalPages Overload
ReportViewer Class
Microsoft.Reporting.WinForms Namespace

Return to top