Platforms to show: All Mac Windows Linux Cross-Platform
Back to CPMPrinterMBS class.
CPMPrinterMBS.Constructor(name as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Raises exception if lookup fails.
This accepts both CUPS names and the Mac GUI names in printing control panel.
CPMPrinterMBS.DescriptionURL as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Should be the path to a PPD file for a laser printer.
Lasterror is set.
CPMPrinterMBS.DeviceURI as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
On success returns a CFURLMBS object describing the printer's device.
Lasterror is set.
CPMPrinterMBS.DriverCreator as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
CPMPrinterMBS.DriverReleaseInfo as CPMVersionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 15.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CPMPrinterMBS.HostName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CPMPrinterMBS.IndexedPrinterResolution(index as Integer) as CPMResolutionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Index is from 1 to ResolutionCount.
Some examples using this method:
CPMPrinterMBS.IsDefault as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CPMPrinterMBS.IsFavorite as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CPMPrinterMBS.IsPostScriptCapable as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
CPMPrinterMBS.IsPostScriptPrinter as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A PostScript printer is one whose driver takes PostScript directly.
CPMPrinterMBS.IsRemote as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If result is true, the print queue represents a printer hosted and managed by a remote print server.
If result is false, the print queue represents a directly connected printer, a network printer, or a remote printer that is locally managed. Consult the queue's device URI to determine the type of connection that is used to communicate with the printer.
Whether a printer is remote is derived from the CUPS printer-type attribute for the print queue.
CPMPrinterMBS.LanguageInfo as CPMLanguageInfoMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
CPMPrinterMBS.Location as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CPMPrinterMBS.MakeAndModelName as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Returns "" on any error.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
CPMPrinterMBS.ResolutionCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
It is not typical for an application to set the current default printer for the user; the printing system itself takes care of managing the default printer.
This function should be used only in rare circumstances.
Requires Mac OS X 10.5.
CPMPrinterMBS.State as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Printing | MBS MacCG Plugin | 15.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Can be kPMPrinterIdle, kPMPrinterProcessing or kPMPrinterStopped.
The items on this page are in the following plugins: MBS MacCG Plugin.