Let's take a look at the page number display using the system variable PageNumber. Use this variable to display the page number on each page. Where the page numbers appear, they show how system variables are used, depending on which band is the text component.
In the figure above, the PageNumber system variable is used for the PageHeader band. System variables can be used in any text component. Text components can be placed in any page band.