Skip to main content
Version: 8.1

system.print.getDefaultPrinterName

New in 8.1.22

This function is used in Python Scripting.

Description​

Obtains the local default printer.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.print.getDefaultPrinterName()

Parameters​

None

Returns​

String - A string that represents the default printer. Returns null if there is no default printer.

Scope​

Gateway, Vision Client, Perspective Session

Code Example​

Code Snippet
# This code will return the name of the local default printer.
system.print.getDefaultPrinterName()

Keywords​

system print getDefaultPrinterName, print.getDefaultPrinterName