Preparing the Workspace
Working in the Workspace can be either "from scratch" or by loading
a "prototype" into a special Prototype area appended to the top of
the Workspace. To use the Prototype, press the Prototype toggle button. This
will subdivide the Workspace by adding the Prototype area above the actual
Workspace, and display the Print templates view of the Palette.
The use of the Prototype is optional and is usually employed when, for example, a Header has been created as a single template and you wish to properly line up the Body template that is associated with it, or vice versa.
However, before doing any of the above, you must establish the Paper Size and the Margins of the report, and decide on the Grid density (use the Menu selection shown or the Page Layout button in the tool bar of the Template Workspace):
The printed text prints on the Base line (the horizontal grid line) and aligns with the vertical grid lines:
Make sure that you understand the constraints of the "expandable" Text field.
Print templates are also sensitive to the page-end and page-start conditions set by the template's Print Template Inspector settings:
and the Segment
Inspector, and can print designated segments when these conditions arise.
Beyond this, print templates do not implement any logic; they are no more
that "dumb" forms that know how to print data when the data becomes
available. They don't know how to get the data from the database, or how
to calculate it. Getting data is the function of Report
Procedures.
Populating the Workspace
You can now proceed to fly in the fields (Components or Local/Database fields)
from the Palette and start creating a new template.
Whether to utilize dynamic Print fields or existing Database fields must be decided on a case by case basis. The following example utilizes a dynamic Print field:
The Adjustment, % (vernier) provides for the fine-tuning of the field's location between the grid points. It allows for the repositioning of a field by up to + or - 50% (1/2 a defined grid spacing - up or down, left or right), in order to assist in achieving aesthetically pleasing Reports.
Segmenting the Workspace
A single Print Template can contain up to three possible Segment components:
Header, Body, and Footer. How to embody these features in a Report depends upon
the desired format i.e think it through before you begin.
For example, assume that you want to create a Financial Statement consisting of a report header; two visually identical sections each consisting of a section header, section detail lines, section total; and a final total. Two Print templates will handle the job: