Skip to main content
Version: 8.1

system.print.getPrinterNames

New in 8.1.22

This function is used in Python Scripting.

Description​

Lists the available local printers.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.print.getPrinterNames()

Parameters​

None

Returns​

List - A list of strings that contain the names of local printers. Returns an empty list if there are no available local printers.

Scope​

Gateway, Vision Client, Perspective Session

Code Example​

Code Snippet
# This code will return a list of names of the machine's local printers.
system.print.getPrinterNames()

Keywords​

system print getPrinterNames, print.getPrinterNames