Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

CUPS.CancelJob

Cancel a print job on the default server.

Component Version macOS Windows Linux Server iOS SDK
CUPS 2.5 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "CUPS.CancelJob"; name; JobID )   More

Parameters

Parameter Description Example
name Name of the printer. "Brother_DCP_8085DN"
JobID The job number of the job you want to cancel. Pass -1 to cancel all jobs or 0 to cancel current job. 123

Result

Returns 1 on success, 0 on failure.

Description

Cancel a print job on the default server.

Examples

Cancel all jobs on this printer queue:

MBS( "CUPS.CancelJob"; "Brother_DCP_8085DN"; -1 )

See also

Created 18th August 2014, last changed 18th August 2014


CNGroup.Name - CUPS.GetDefaultPrinterName

Feedback: Report problem or ask question.