Printer.CancelJob
-----------------

Cancels a print job.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Printer](component_Printer.md) | [16.3](newinversion163.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Printer.CancelJob"; Printer Name; Job ID ) 

**MBS**( **"Printer.CancelJob";** /\* Cancels a print job. \*/  
**$Printer Name**; /\* The printer name.   
Can be "" for default.e.g. "MyPrinter" \*/   
**$Job ID**) /\* The job ID to look for.e.g. 7411 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Printer Name | The printer name.    Can be "" for default. | "MyPrinter" |
| Job ID | The job ID to look for. | 7411 |

### Result

Returns OK or error.

### Description

Cancels a print job.  
### Examples

Cancel a printer with job ID:

 MBS ( "Printer.CancelJob"; ""; 7411 )  
### See also

- [CUPS.CancelJob](CUPSCancelJob.md)

### Release notes

- **Version 16.3**
    - Added Printer.CancelJob and Printer.GetJobsAsJSON functions.

### Blog Entries

- [MBS FileMaker Plugin, version 16.3pr1](https://www.mbsplugins.de/archive/2026-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th May 2026 , last changed 18th May 2026

  
[PrintDialog.SetTray](PrintDialogSetTray.md) - [Printer.CurrentNumberOfCopies](PrinterCurrentNumberOfCopies.md)

[HTML Version](PrinterCancelJob.shtml)