ReportViewer.PageCountMode 屬性

取得或設定 PageCountMode 列舉值,這個值表示在報表區域中轉譯報表時要使用的預設頁面計數模式。

命名空間:  Microsoft.Reporting.WinForms
組件:  Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)

語法

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

屬性值

類型:Microsoft.Reporting.WinForms.PageCountMode
PageCountMode 物件。預設值為 Estimate

備註

設定 PageCountMode 以控制於報表區域中轉譯報表時計算總頁數的方式。當 PageCountMode 為 Actual 時,ReportViewer 控制項會在工具列上顯示實際總頁數。當 PageCountMode 為 Estimate 時,ReportViewer 控制項會根據報表,計算實際總數或估計總數。當計算值為估計總數時,接著會在工具列上顯示估計指標,而且顯示的值可能會隨著使用者巡覽報表頁數而變更。

注意事項注意事項

使用估計頁數有助於改善 ReportViewer 控制項轉譯報表時的效能。

請參閱

參考

ReportViewer 類別

Microsoft.Reporting.WinForms 命名空間