### Page headers and footers

Page headers and footers are areas in the top and the bottom page margins, where you can add any JReport components. They are added to the current page settings. Any page that uses the same settings automatically receives the header or footer that you add. You can insert fields, such as page numbers and chapter headings, in headers and footers in a text document.

A page header and page footer will be generated at the same time when a report is created, except for banded layout reports. For a banded layout report, a page header and page footer can only be generated after you insert a page panel into a banded panel.

You can choose to show or hide them according to your own requirements by checking or unchecking the View > Page Header or View > Page Footer.

Note: Any component can be inserted into page headers and footers as required, except for map, drawing object and UDO.