Applies To:
  • CitectSCADA 1.20, 2.01

Summary:
It is now possible to mix fonts when printing reports. 

Solution:
To do this, call the Cicode PrintFont() function in a report format file, and change the font style for the device (or group of devices) defined in the Reports form (output device field). It will only have effect on reports being printed to a PRINTER_DEV - it will have no effect on other types of devices such as ASCII_DEV and dBASE_DEV.

Syntax:  PrintFont(String)

String The name of the citect defined font to use.

Return Value 0 (zero) if successful, otherwise an error number is returned.

For example, the following report file...

{! example.rpt }
-------------------------------------
An example Report
-------------------------------------
{CICODE}
PrintFont("HeadingFont");
{END}
Plant Area 1
{CICODE}
PrintFont("ReportFont");
{END}
{Time(1) } {Date(2) }
PV_1 {PV_1:#####.##}
PV_2 {PV_2:#####.##}
----------End of Report---------------

...will print out as...

-------------------------------------
An example Report
-------------------------------------
Plant Area 1
04:41:56 19-10-93
PV_1 49.00
PV_2 65.00
----------End of Report---------

Note: Usage can be found in Citect's help.  


Keywords:
 

Attachments