Report.SetPage(Int32, Int32) Method

Definition

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

Applies to