PrintCancel

Description

Cancels printing and deletes the spool file, if any. Cancels printing of a print job that you opened with the PrintOpen function. The print job is identified by the number returned by PrintOpen.

Syntax

PrintCancel ( printjobnumber )

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs. If printjobnumber is null, PrintCancel returns null.