Get List of Client Printers - Perspective

Is there any way to get a list of client printers on a perspective project? I know that the scoping of the gateway makes this inherently difficult to get client data like this. We have a server with a good chunk of our printers, but some are only connected directly to local machines via serial, so connecting to a server won't quite capture what I need. Thanks.

Nope, browser security prevents you from accessing local peripherals as it's a security concern of it were allowed, unlike in Vision where this would be possible

This was my assumption, but good to get verification. Thanks.

Do note the recently added ability to trigger a browser print of a page/view/component:

https://docs.inductiveautomation.com/display/DOC81/Component+Events+and+Actions#ComponentEventsandActions-RequestPrintAction

( Still requires user confirmation... )

This unfortunately doesn't fit my need for this project. We essentially want to build a page that allows users to store printer preferences per PC they are located at. We have 'stations' around our facility that use locally connected printers that can change based on the size of the print out. Our vision was to embed an xml output via an Ignition screen for another program to use. Included in that XML output is the default printer for that station to use. I wanted to create a dropdown of available printers for that client the user is using. We have access to our client PC name in the session properties with how we configured the gateway, so I was hoping I could get that client's locally installed print drivers.

You might be able to use the gw to reach out to all client PCs via other methods to get this info and store it in a db or somewhere accessible to Ignition. For example, powershell can get this info from remote pcs. Presumably so can Jython... Maybe
Edit: maybe not Jython. Python can using wmi library (windows)

1 Like