Use the textReport.setHeaderLines() function to specify the number of lines the report engine reserves for the header on all pages except the first. This number does not include the number of lines reserved for the top margin (set when you create a new text report variable). The header that you provide must have the number of lines that you specify here, or EGL will not print the correct total number of lines on the page.
To specify the number of header lines on the first page, use setFirstHeaderLines().
textReport.setHeaderLines(
numLines INT in)
The following example reserves a single line for the regular header:
myReport TextReport = new TextReport();
...
textReportEngine.setHeaderLines(1);