setHeaderLines()

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().

Syntax

  textReport.setHeaderLines(
     numLines INT in)
textReport
The name of a variable that is based on the TextReport external type.
numLines
The total number of lines the report engine should reserve for the header on any but the first page of the report.

Example

The following example reserves a single line for the regular header:

myReport TextReport = new TextReport();
...
textReportEngine.setHeaderLines(1);

Feedback