Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CUPS.GetDefaultPrinterName
Get the default printer or class for the default server.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CUPS | 2.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
MBS( "CUPS.GetDefaultPrinterName" )
Parameters
none
Result
The name of the default printer.
Description
Get the default printer or class for the default server.This function returns the default printer or class as defined by the LPDEST or PRINTER environment variables. If these environment variables are not set, the server default destination is returned.
Returns empty string if no default printer is defined.
Examples
Query default printer name:
$result = MBS( "CUPS.GetDefaultPrinterName" )
This function is free to use.
Created 18th August 2014, last changed 18th August 2014