You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

This message returns the status of the print session.

Parameters

MessageFieldsDescription
CANCEL<1>Returns a "1" if the user cancels the print job or closes the preview window during a print session.

Example

 
/* The following example shows how to use the CANCEL message. */
 
declare function Set_Printer, Get_Printer
stat = Set_Printer("INIT") ;* Start printing
 
loop
   readnext key else done = 1
until done
   cancelled = Get_Printer("CANCEL")
   if cancelled then
      done = 1
   end else
      Set_Printer("TEXT",'More text to print': key)
   end
repeat
 
stat = Set_Printer("TERM") ;* End printing
  • No labels