Applies To:
  • CitectSCADA x.x

Summary:
Question: I have a report set up, which has the first lines containing a call to PrintFont. e.g

{CICODE}
   PrintFont("MyFont");
{END}

Why does my scheduled report not print with the correct font the first time, and why does my manually run report never print with the correct font?


Solution:
This problem occurs because the device is not opened before the first line in printed, and it is not opened automatically when the report is run. Scheduled reports keep the device open, whereas manually run reports open and close the device every time, giving different behaviour for differently run reports. Putting some text in the report before the call to PrintFont() will fix this problem. e.g.

Shift Report:
{CICODE}
   PrintFont("MyFont");
{END}

 

Keywords:
 

Attachments