skip to main content

Library Routines : WIN$PRINTER : WINPRINT-CANCEL-JOB

WINPRINT-CANCEL-JOB
The WINPRINT-CANCEL-JOB function cancels the current print job. The subsequent CLOSE statement on the print file will release all the job resources without printing out anything. This function affects standard print jobs as well as print preview and PDF generation. It has no effect if the printing device is SPOOLER DIRECT or any other physical device.
Note: This function should always be called between the OPEN OUTPUT and the CLOSE of the print file. If the function is called after the CLOSE of the print file, the next print job will be cancelled.
Syntax:
 CALL "WIN$PRINTER" USING WINPRINT-CANCEL-JOB 
Parameters:
Return code:
returnCode can be any signed numeric data item and provides additional information:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left