LocalReport.GetTotalPages 方法 (PageCountMode)

 

傳回報表中軟分頁的總數,以及指出現有頁面計數模式的 PageCountMode 列舉值。

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

語法

public override int GetTotalPages(
    out PageCountMode pageCountMode
)
public:
virtual int GetTotalPages(
    [OutAttribute] PageCountMode% pageCountMode
) override
override GetTotalPages : 
        pageCountMode:PageCountMode byref -> int
Public Overrides Function GetTotalPages (
    <OutAttribute> ByRef pageCountMode As PageCountMode
) As Integer

參數

傳回值

Type: System.Int32

integer 值,包含報表中軟分頁的總數。 如需關於軟分頁的詳細資訊,請參閱Understanding Rendering Behaviors。

註解

For more information, see the GetTotalPages method of the M:Microsoft.Reporting.WinForms.Report class.

When the ReprotViewer control is in print layout mode, pageCountMode is always T:Microsoft.Reporting.WinForms.PageCountMode.Actual.

另請參閱

GetTotalPages 多載
LocalReport 類別
Microsoft.Reporting.WinForms 命名空間

回到頁首