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.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

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

value = instance.PageCountMode

instance.PageCountMode = value
[DefaultValueAttribute(PageCountMode.Estimate)] 
[WebBrowsableAttribute(true)] 
public PageCountMode PageCountMode { get; set; }
[DefaultValueAttribute(PageCountMode::Estimate)] 
[WebBrowsableAttribute(true)] 
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 enumeration value. 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 an 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.WebForms Namespace