Export (0) Print
Expand All

ReportViewer.PageCountMode Property

Visual Studio 2010

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)

[DefaultValueAttribute(PageCountMode.Estimate)] 
public PageCountMode PageCountMode { get; set; }
/** @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.

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.

NoteNote

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

Show:
© 2014 Microsoft