Share via


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

'Declaration
<DefaultValueAttribute(PageCountMode.Estimate)> _
Public Property PageCountMode As PageCountMode
'Usage
Dim instance As ReportViewer
Dim value As PageCountMode

value = instance.PageCountMode

instance.PageCountMode = value
[DefaultValueAttribute(PageCountMode.Estimate)] 
public PageCountMode PageCountMode { get; set; }
[DefaultValueAttribute(PageCountMode::Estimate)] 
public:
property PageCountMode PageCountMode {
    PageCountMode get ();
    void set (PageCountMode value);
}
/** @property */
public PageCountMode get_PageCountMode ()

/** @property */
public void set_PageCountMode (PageCountMode value)
public function get PageCountMode () : PageCountMode

public function set PageCountMode (value : PageCountMode)

Property Value

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

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace