CUPS.GetDefaultPrinterName
--------------------------

Get the default printer or class for the default server.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CUPS](component_CUPS.md) | [2.5](newinversion25.md) | ✅ 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

  
[CUPS.CancelJob](CUPSCancelJob.md) - [CUPS.GetJobCompletionTime](CUPSGetJobCompletionTime.md)

[HTML Version](CUPSGetDefaultPrinterName.shtml)