In OO, headers are specified by page styles.

  1. Open the Page Style dialog box for the desired page style (right-click > Modify).
  2. Select the Header tab.
  3. Under Header, check Header on and click OK.

Turn on page header
Turn on page header.

The simplest case is to have the page number at the top of every page and nothing more. To do this, put the cursor on the header and select Insert > Fields > Page Number.

Page number in header
Page number inserted in the header

Presto! Now, the correct page number appears on every page.

Find more information on this feature External Linkhere.