Report.SetPage(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use ReportSection.SetPage(Int32, Int32) instead.
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.
public:
void SetPage(int pageNumber, int totalPages);
[System.Obsolete("Use ReportSection.SetPage(Int32, Int32) instead.")]
public void SetPage (int pageNumber, int totalPages);
[<System.Obsolete("Use ReportSection.SetPage(Int32, Int32) instead.")>]
member this.SetPage : int * int -> unit
Public Sub SetPage (pageNumber As Integer, totalPages As Integer)
Parameters
- pageNumber
- Int32
The page number.
- totalPages
- Int32
The total number of pages.
- Attributes