'宣言 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.