Defines the header lines to be printed at the top of each page.
Header
code
End
Where:
code
Sequence of valid language commands.
Objects: Procedure
Generators:
.NET,
.NET Framework,
Java, RPG, Cobol, Ruby (up to GeneXus X Evolution 3), Visual Basic (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3),
The first group in the Procedures default Source is the Header Group. The data within the Header level is printed at the beginning of each page of the report. The Header Group is optional hence, if no Header is specified, then no page header is printed.
A header can also be defined for every "For each" group defined in the Source. This causes the Header associated with the current For each group, and all Headers specified for all above nested groups, including the Main Header (the one defined for the Report/Procedure) to be printed after a page is ejected.
Suppose you want to define a report listing all your clients. In the Source of the Procedure, a main report/procedure Header is defined and another Header is defined for the For each - Endfor group which will scan over the Clients table when executed. For every page jump, both headers are printed.
Header
Print Header
End
For each
Header
Print TitleClient
End
Print InfoClient
Endfor
The following picture shows the layout:
Footer Command