To include a page number on each page of a report, drag the PageNumber component (from the Component palette’s Custom page) to the report page, positioning it where you want the number to appear. (This is a custom component installed with the dBASE Plus samples.)

Creating a page number from scratch

  1. Place a Text component on the report's page (on the pageTemplate object).

  2. Open the Inspector and make sure that the newly added Text component has focus.

  3. Locate the text property in the Inspector, and click on the type selection drop-down button (Shaped like a down arrow with the letter "T" on it) and choose Codeblock from the drop-down list.

  4. Click on the wrench tool for the text property to open the Code Block Builder.

  5. Delete the default text including the quotes and enter the following:

   this.parent.parent.reportPage

  1. Make sure the Expression radio button is selected, and press the OK button to close the dialog.