# SimpleMasterPage

The simple master page provides a header and footer that appear on every page.

### Description

The page margins define the position of the content area on the page. The page header and footer reside within the content area. The page header is at the top on each page, and the page footer is at the bottom.

The following crude picture gives an idea of the parts of a simple master page:

#### Page Header and Footer

The page header and footer can include any element except the following:

- Any element is bound to a data set. The header and footer do not have visibility to any data set.
- A list, table, matrix or other item that is normally driven by a data set.

The header and footer can display data from global variables, from report parameters or other sources. Such expressions are evaluated once early in the report, and the same values will be used on all subsequent pages. The one exception is the page number, which is shown as expected on each page.

BIRT FO output format maps page header to `region-before`, and page footer to `region-after.`

#### Common Left/Center/Right Layout

A very common construction for a page header or footer is to include a three-cell grid in which the first cell is left-aligned, the second cell is centered and the third is right-aligned. For example:

    ABC Corp.              Sales Summary Report       Page 1 of 4

Or,

    Sales Summary Report         — 1 —         Run Date: 12/13/04

#### Style

Page header and page footer are elements, and each element defines its own style. So, to set the style of the page header or footer, set the style on the page header or footer element itself.

### See Also

## showHeaderOnFirst

Whether to show the page header on the first page of the report.

### Description

Whether to show the page header on the first page of the report. Default is true.

### See Also

## showFooterOnLast

Whether to show the page footer on the last page of the report.

### Description

Whether to show the page footer on the last page of the report. Default is true.

### See Also

## footerHeight

Height of the page footer.

### Description

Height of the page footer.

## headerHeight

Height of the page header.

### Description

Height of the page header.

## floatingFooter

If true, the footer "floats" after the last content on each page.

### Description

If true, the footer "floats" after the last content on each page. If false, the footer is always at the bottom of the content area. Default is false.

### See Also

## pageHeader

Element to display at the top of each page.

### Description

Contains an element to display at the top of each page. Contains any report item that is not variable size or is bound to data. The following elements are not allowed: Chart, List, Table, Matrix. The following are allowed: Data, Label, Text, Grid, Image.

### See Also

`showHeaderOnFirst` property

`headerHeight` property

## pageFooter

Element to display at the bottom of each page.

### Description

Contains an element to display at the bottom of each page. Contains any report item that is not variable size or is bound to data. The following elements are not allowed: Chart, List, Table, Matrix. The following are allowed: Data, Label, Text, Grid, Image.

### See Also

`showHeaderOnLast` property

`floatingFooter` property

`footerHeight` property