A script-enabled browser is required for this page to function properly.

Page Numbering property

The Page Numbering property specifies how page numbers are calculated for fields that have a Source of &Physical Page Number, &Total Number of Physical Pages, &Logical Page Number, or &Total Number of Logical Pages.

Applies to

Page number fields

Values

The settings for each page are based on the logical or physical page as specified by the field's Source.

Default

Blank

Required/Optional

Optional

The figure below illustrates the differences between logical page, physical page, and panel numbering. Note that each region may contain multiple logical pages. Furthermore, within each logical page you may have multiple panels. In the figure, physical pages are numbered consecutively starting with the Header Section pages. This assumes that you selected Header Section, Body Section, and Trailer Section in the Page Numbering dialog box.

graphic depicting situation described above

Restrictions

If the Reset At value is a repeating frame, do not have the field appear on pages where the repeating frame does not appear. Because the value of the field is determined by the repeating frame, the results will be unpredictable on pages where the repeating frame does not appear. To avoid this situation, you can do any one of the following:

Similarly, if the field is not inside the repeating frame it resets at, and multiple instances appear on the same page, Reports Builder cannot determine the value of the field and the results are again unpredictable. To avoid this situation, you can do any one of the following:

Examples

Example 1: Pages in body

Suppose that you want to number the physical pages of the Main Section of your report:

  1. Create a field named F_PAGE and set the Source property to &Physical Page Number.

  2. In the Field Property Inspector for F_PAGE, set the Page Numbering property by filling out the Page Numbering dialog box as follows:

  3. Position F_PAGE in the Paper Layout view.

Example 2: "Page n of m pages"

Suppose that you want to have the page number at the top of each page of your report. Furthermore, you want the page number to be of the form "Page n of m pages":

  1. Create a field named F_PAGE and set the Source property to &Physical Page Number.

  2. In the Field Property Inspector, set the Page Numbering property by filling out the Page Numbering dialog box as follows:

  3. Create a field called F_TOTPGE and set the Source property to &Total Number of Physical Pages.

  4. Do either of the following:

Example 3: Repeating frame instances

Suppose that you have a repeating frame (R_1) with instances that span several pages and you want to number the physical pages that each instance spans. Assume also that you want the page number to be of the form "Page n of m pages":

  1. Create a field named F_PAGE and set the Source property to &Physical Page Number.

  2. In the Field Property Inspector for F_PAGE, set the Page Numbering property by filling out the Page Numbering dialog box as follows:

  3. Create a field called F_TOTPGE and set the Source property to &Total Number of Physical Pages.

  4. In the Field Property Inspector for F_TOTPGE, set the Page Numbering property by filling out the Page Numbering dialog box as follows:

  5. Do either of the following: