Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The TERM message is used to end a printing session. The TERM message is required to close the printing job, destroy the printing dialog box, and clean up resources. If the Print Preview window is visible, then the TERM message finishes the printing and activates the Print Preview window. All of the information that was set with the Set_Printer() function (fonts, headers, footers, and column information) will be reset. The INIT and TERM messages may be called multiple times to print several separate reports, but make sure there is a TERM message for every INIT message. Only one printing session can be open at a time, therefore each INITmessage  message must have a matching TERM message before another printing session is started.

...

ParameterDescription of FieldsCommentsDefault
Parm1 - Close<1> Close

Determines how the OIPI engine closes

0=Not Closed

1=Closed after TERM or when the Print Preview is closed

2=Immediate Close

0

See also

INIT Set_Printer Message

Example

...

Code Block
/*The following example shows to use the TERM message. */
 
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("TEXT", "Test 1 2 3") ;* Print text
stat = Set_Printer("TERM") ;* End printing