Repeating the header and footer

Top  Previous  Next

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 to "FirstPage, LastPage, OddPages, EvenPages" (that is all values except the "RepeatedBand");
the second object will be printed only on the headers which are repeated. Set its "PrintOn" property to "RepeatedBand". Add the "Text" object with "continue..." text on the header.

 

The report will be printed as follows:

 

group_overflow

 

Group footer can also be repeated on every page:

 

group_overflow2

 

In this report, the group footer has two objects, placed one on top of the other:

 

group_overflow3