On the REPORT GENERATOR menu select Format Sationery > Format (from the text file ring menu).
The format of the definition is put together in much the same way as a report definition with the exception that this format is two-dimensional. Instead of just going across the page with fields, you can arrange the fields across and down the page. In this case you can also mix text with the fields as required.
Note: Consider how you frame your text, there is no word wrap.
To include a field in the format:
Note: The area you are allowed to edit depends on the settings for width and depth made in the Title screen. Each area enables input of Text or inclusion of fields held in any of the files available to the format. If you defined either the header or trailer as zero in the Title screen, then you are not be prompted to edit them.
Header: Selection of the Header option leads you to choose from the Header or the Continuation-Header. The 'Header' only appears on page one of the format. The 'Continuation header' appears on all subsequent pages.
Trailer: In the same way as there are two headers, there are two trailers; the Final Trailer and the Continuation Trailer. The final trailer only appears on the final page whereas the continuation trailer occurs on every other page.
Body: There is normally only one Body for the report. Selection of the option enables you to edit the main body of the Report/Letter.
Editing the formats: Whether you are editing the Header, Body or Trailer the basic moves are the same.
Depending on the type of field required, different prompts are displayed:
Alpha Field
If you are entering an Alpha field onto the Format, the following prompts are given after entry of the field name:Length: The length of the field is displayed, you may enter a different field length if required but rest assured that the correct length appears as the default, either Formatted, Truncated or Blank-Line or Suppress:
Note: Although the line is blank it still counts as a positive line on the page count, it will NOT shift the following lines up.
If you are entering an Alpha field onto the Format, the following prompts are given after entry of the field name:
Image: The image to be used when printing needs to be agreed. The default is correct for the size of the field but you may need to make it either smaller or larger. The normal reason for making it larger is to cater for large totals. You have the choice of classing the field as either:
Note: Please bear in mind that the whole of the image is used in just the way a formatted Alpha field works. If you have a very large image you may wish to reduce it in order to reduce wastage of column space.
Input of a Derived field is similar to that of a numeric field, apart from:
Note: If this is selected then the system calculates the date equivalent to the field value and prints it in date format. You may use an 8 or 10-character format or, if preferred, you can use a 20-character format and have the date printed as a text field.
Entered in the same way as normal alpha fields with the Formatted, Truncated, Blank-line and Suppress options.
Characters or fields typed in in the normal manner display according to the current printer set-up. You may wish to enhance the appearance of the printed document by customising the character presentation.
The easiest way to do this is to use the '<' and '>' symbols. Any characters printed after the '<' sign is sent to the printer in expanded mode. All characters on the same line following the '<' symbol is expanded until the '>' symbol is used. The character expansion is cancelled at the end of the line. Be aware that these symbols may not always work on laser printers.
Use of derived fields can add to the character customisation. The user needs to study the printer escape commands required for the printer to be used (these can always be found in the printer manual), and insert these codes into a series of derived fields.
Examples:
Name. |
= |
|
BIG$ |
" ":!0_BIG$=HEX(0E) |
|
SMALL$ |
" ":!0_SMALL$=HEX(0F) |
|
BOLD$ |
" ":!0_BOLD$=HEX(1B45) |
|
BOLDOFF$ |
" ":!0_BOLDOFF$=HEX(1B46) |
|
BIGBOLD$ |
" ":!0_BIGBOLD$=HEX(1B450E) |
|
SMLBOLD$ |
" ":!0_SMLBOLD$=HEX(1B450F) |
The field names above should speak largely for themselves. They make the printer increase or decrease the size of the characters, add double strike or remove it.
You can include printer control codes for your own printer type by using the HEX codes found in the printer manual. You can combine more than one printer command in one statement.
Please be aware that the printer commands nearly all stay in effect until they are cancelled. Make sure you include the codes required to restore your printer.
Note: The escape sequences used in the example above should not be taken as accurate. You must check your own printer manual to confirm the structure of the codes you need to use.
Where required you may make use of a simple text copying utility. If a Header and Continuation header are to be the same for example, you can assemble one and then copy it into the other.
You may copy text from one format to another as long as you do not move back to the report generator main menu during the copying operation. If you do copy text into a different format definition, and field definitions are included in the copied lines, then please remember to check the order of the files on the dictionary screen - they must be the same in both reports.
To cut and copy:
Select as required and then press <RETURN>.
Note: Any text already on the format is moved down by the required number of lines and may be lost from the bottom of the format.