ReportViewer.PageCountMode 属性

获取或设置一个 PageCountMode 枚举值,该值指示当在报表区域中呈现报表时使用的默认页计数模式。

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
<WebBrowsableAttribute(True)> _
Public Property PageCountMode As PageCountMode
[WebBrowsableAttribute(true)]
public PageCountMode PageCountMode { get; set; }
[WebBrowsableAttribute(true)]
public:
property PageCountMode PageCountMode {
    PageCountMode get ();
    void set (PageCountMode value);
}
[<WebBrowsableAttribute(true)>]
member PageCountMode : PageCountMode with get, set
function get PageCountMode () : PageCountMode
function set PageCountMode (value : PageCountMode)

属性值

类型:Microsoft.Reporting.WebForms.PageCountMode
一个 PageCountMode 枚举值。默认值为 Estimate

备注

设置 PageCountMode 以控制当在报表区域中呈现报表时如何计算总页数。当 PageCountMode 为 Actual 时,**“ReportViewer”控件在工具栏中显示实际总页数。当 PageCountMode 为 Estimate 时,“ReportViewer”**控件可以根据报表计算实际总数或估计的总数。当计算的值为估计总数时,在工具栏中该值的后面跟有一个估计指示符,当用户浏览报表页时显示的值可能会有所改变。

备注

使用估计的页计数有助于提高呈现报表时“ReportViewer”控件的性能。

请参阅

参考

ReportViewer 类

Microsoft.Reporting.WebForms 命名空间