Repeating the header and footer
Group header and footer have the RepeatOnEveryPage
property. It can be useful if the group does not fit on one page of a prepared report. By using this property, you can print the group header/footer on each page, where the group is printed. When printing such header/footer, FastReport sets its "Repeated" flag. This can be used for printing different objects on an ordinary group header and on repeat, for example, printing the "continue..." text on a new page. For this, use the PrintOn
property of the "Text" object (see more details in the "Booklet" report type" section).
In order to print different texts, place two objects on the group header, one on top of the other:
- the first object will be printed on ordinary headers. Set its
PrintOn
property value toFirstPage, LastPage, OddPages, EvenPages
(that is all values except theRepeatedBand
); - the second object will be printed only on the headers which are repeated. Set its
PrintOn
property toRepeatedBand
. Add the "Text" object with "continue..." text on the header.
The report will be printed as follows:
Group footer can also be repeated on every page:
In this report, the group footer has two objects, placed one on top of the other: