Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

This function checks for a license.

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


CNGroup.Name - CUPS.GetDefaultPrinterName