RTF printer

The program description deals with the following:


Remarks on program function

The data for an RTF printer can be updated, i.e. programmed, changed or cleared, with this program. Data which has already been stored can also be displayed for information.

When the RTF printer is set up interface 99 (NULL) must be selected as the device connection. The RTF file is written into the TMP directory, e.g. “LinePrinter.11516.001.rft”.

This printer allows reports in RTF format to the transferred to the MS-Word program where they can then be printed out. The advantage of this type of print is that various types and sizes of print can be used for the layout of the reports instead of the standard layout.


Formatting for print in RTF format

All reports are printed in proportional letters. The print can also be formatted and fonts selected to improve the layout of the report.

The example below is taken from the FGL script "PrintForm.fgl". Bold print has been formatted for "TextOperator", "TextPage" and "TextDate".

PRINT COL 1, MyBranchName : 20,
COL 22, rtfBold(), TextOperator , ':', rtfNormal(),
OperatorName : 20,
COL 52, rtfBold(), TextPage , ':', rtfNormal(),
Printer.PageNo : '####0',
COL MaxChar - 15, rtfBold(), TextDate : 5, ':', rtfNormal(),
COL MaxChar - 9, ActDate.convertToPrint (Programm.DateFormat, 0)

In addition to the method described above, the following RTF commands can also be used for formatting.

IF RtfFile = 1
BEGIN
PRINT rtfResetTab(), rtfSetTab(22), rtfSetTab(52), rtfSetTab(MaxChar - 15), rtfSetTabRight(MaxChar), rtfNormal(),
MyBranchName, rtfTab(),
rtfBold(), TextOperator, ':', rtfNormal(),
OperatorName, rtfTab(),
rtfBold(), TextPage, ':', rtfNormal(), ' ',
Printer.PageNo, rtfTab(),
rtfBold(), TextDate, ':', rtfNormal(), rtfTab(), ActDate.convertToPrint (Programm.DateFormat, 0)
END

New functions

The following new functions can be used in file "PrintForm.fgl" for text formatting for print of RTF files.


Remarks on data fields

The following description deals with all available options for update of this basic data.

As with nearly all other programs the following also applies here:


Debug

Field with firmly defined selection options

Select one of the offered debug levels by clicking on this field and with a second click confirming the selection.

The system offers the following debug levels:

Note:
Only select a value higher than "0" for the debug level if a protocol for the communication of the printer is required for error analysis. The details are shown in file "errlog" in directory work of the appropriate system unit.


Lines

Default 59

Enter a value for the number of lines to be printed per page. The number of lines depends on the size set. The default for font size is 10 dots.


Columns

Default 80

Enter a value for the number of characters to be printed on each line. The number of columns is dependent on the font size set. The default value is a size of 10 dots.


Left margin

Default 20

Enter a value in millimetres for the left-hand margin of the report.


Right margin

Default 15

Enter a value in millimetres for the right-hand margin of the report.


Top margin

Default 15

Enter a value in millimetres for the top margin of the report.


Bottom margin

Default 15

Enter a value in millimetres for the bottom margin of the report.


Code Page

Field with firmly defined selection options

Select one of the offered character sets for use on the printer by clicking on this field and with a second click confirming the selection.

The system offers the following:

 Click on the graphic for further information on Code page tables.


Index


MICROS Retail Deutschland GmbH
Salzufer 8
D-10587 Berlin