Report.SetPage 方法
注意:此 API 已經過時。
Sets the current page number and total page count. This method must be called before GetPageSections. The totalPages argument must be accurate if NeedsHeaderFooterEvaluation is true. Otherwise, this argument is unused.
命名空間: Microsoft.ReportingServices.OnDemandReportRendering
組件: Microsoft.ReportingServices.ProcessingCore (在 Microsoft.ReportingServices.ProcessingCore.dll 中)
語法
'宣告
<ObsoleteAttribute("Use ReportSection.SetPage(Int32, Int32) instead.")> _
Public Sub SetPage ( _
pageNumber As Integer, _
totalPages As Integer _
)
'用途
Dim instance As Report
Dim pageNumber As Integer
Dim totalPages As Integer
instance.SetPage(pageNumber, totalPages)
[ObsoleteAttribute("Use ReportSection.SetPage(Int32, Int32) instead.")]
public void SetPage(
int pageNumber,
int totalPages
)
[ObsoleteAttribute(L"Use ReportSection.SetPage(Int32, Int32) instead.")]
public:
void SetPage(
int pageNumber,
int totalPages
)
[<ObsoleteAttribute("Use ReportSection.SetPage(Int32, Int32) instead.")>]
member SetPage :
pageNumber:int *
totalPages:int -> unit
public function SetPage(
pageNumber : int,
totalPages : int
)
參數
- pageNumber
型別:System.Int32
The page number.
- totalPages
型別:System.Int32
The total number of pages.