Adding a Page Number to a Footer

To display a page number in the header or footer of a report, create a text box in the footer and add the following expression: