A single Print Template can contain up to three possible Segment components: Header, Body, and Footer.

Each Segment option is marked when the template is constructed - the selection is made in the Inspector's Segment view. If the same template contains multiple segments, then each segment must be separated from the following segment with a Separator object and given the appropriate Inspector definition.

Segments provide for the direct control over printed blank lines above and below the segment in the Inspector window as shown at the bottom of the Print Segment Inspector view (see immediately above).

Segments maintain the spacing between the print fields - vertical as well as horizontal. However, the vertical spacing is honored only between the fields (you should familiarize yourself with the behavior of  the "expandable" Text field). To determine whether you like the completed layout, click on the Preview template button.

Header Segment
Header segments are printed when the Print template:

Each Print template can have:

Header segments maintain a certain degree of independence from the Report Procedure. The Procedure may trigger printing of the start-up Header when it calls the print template for the first time; but, from then on, printing of the Headers is controlled by the machinery of the Report Generator, and not directly by the flow chart. So when the template is called again by the Procedure, its Header may or may not be printed (depending on the utilization of the currently printed page).

Body Segment
Body segments are repeatable portions of the template that are printed every time the template is called by the Procedure.

Footer Segment
Footer segments are printed:

Each Print template can have:

Footer segments are independent from the Report Procedure. They are triggered by the events that are not directly controlled by the Procedure (except for the terminating Footer called by the Terminator object). Instead, every running template watches for the page-end event, and prints its Footer segment when this event occurs. Multiple templates cooperate with each other so that when the page-end event is raised, there is enough room left on the page to accommodate all Footer sequences from all running Print templates.

 

Go to:
Index
Table of Contents