FlexReport for WinForms
GetPageCount メソッド (ReportSession)


C1.Document.4.6.2 アセンブリ > C1.Ssrs 名前空間 > ReportSession クラス : GetPageCount メソッド
ReportSession.ReportFormat object specifies the report format.
PageLayout object specifies the page settings, this parameter used only for PDF and IMAGE formats.
System.Threading.CancellationToken that can be used to cancel an action.
Returns count of pages in the report.
シンタックス
'宣言
 
Public Function GetPageCount( _
   ByVal format As ReportSession.ReportFormat, _
   ByVal pageLayout As PageLayout, _
   ByVal cancellationToken As System.Threading.CancellationToken _
) As System.Integer
'使用法
 
Dim instance As ReportSession
Dim format As ReportSession.ReportFormat
Dim pageLayout As PageLayout
Dim cancellationToken As System.Threading.CancellationToken
Dim value As System.Integer
 
value = instance.GetPageCount(format, pageLayout, cancellationToken)
public System.int GetPageCount( 
   ReportSession.ReportFormat format,
   PageLayout pageLayout,
   System.Threading.CancellationToken cancellationToken
)

パラメータ

format
ReportSession.ReportFormat object specifies the report format.
pageLayout
PageLayout object specifies the page settings, this parameter used only for PDF and IMAGE formats.
cancellationToken
System.Threading.CancellationToken that can be used to cancel an action.

戻り値の型

Count of pages or -1 if actions was canceled.
参照

参照

ReportSession クラス
ReportSession メンバ