ReportViewer.PageCountMode Property

 

Gets or sets a PageCountMode enumeration value that indicates the default page count mode to use when rendering a report in the report area.

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

Syntax

public PageCountMode PageCountMode { get; set; }
public:
property PageCountMode PageCountMode {
    PageCountMode get();
    void set(PageCountMode value);
}
member PageCountMode : PageCountMode with get, set
Public Property PageCountMode As PageCountMode

Property Value

Type: Microsoft.Reporting.WinForms.PageCountMode

A PageCountMode object. The default value is Estimate.

Remarks

Set PageCountMode to control how to calculate the total number of pages when rendering a report in the report area. When PageCountMode is Actual, the ReportViewer control displays the actual total number of pages in the toolbar. When PageCountMode is Estimate, the ReportViewer control may calculate either the actual total or an estimated total, depending on the report. When the calculated value is an estimated total, it is followed by a estimate indicator in the toolbar, and the displayed value may change as the user navigates through report pages.

Note

Using estimated page counts can help improve the performance of the ReportViewer control when rendering reports.

See Also

ReportViewer Class
Microsoft.Reporting.WinForms Namespace

Return to top