Cancels printing and deletes the spool file, if any. There are two syntaxes.
To |
Use |
---|---|
Cancel printing of a DataWindow or DataStore printed with the Print function. |
|
Cancel a print job that you began with the PrintOpen function. For a description of PocketBuilder system print commands, see the PowerScript Reference. |
Cancels the printing of a DataWindow or DataStore that was printed using Syntax 1 of Print.
PowerBuilder DataWindow control, DataStore object, or child DataWindow
integer dwcontrol.PrintCancel ( )
Returns 1 if it succeeds and -1 if an error occurs. If dwcontrol is NULL, PrintCancel returns NULL.
Cancels printing of a print job that you opened with the PrintOpen function. The print job is identified by the number returned by PrintOpen.
PowerBuilder DataWindow control
integer PrintCancel ( long printjobnumber )
Returns 1 if it succeeds and -1 if an error occurs. If printjobnumber is NULL, PrintCancel returns NULL.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |