Written by

Question Nezla · Jun 15, 2023

Get a list of available printers

Hi guys,

How can I get the list of printer in client Zen page?

We currently use an ActivexObject call "MSDesign.WebLabel" to get the list of printer loaded in a dropdown in our Zen pages:

        webControl = new ActiveXObject("MSDesign.WebLabel");
                  if (webControl!=null) printers = webControl.getPrinters();
and this will give us a list of printers available in client machine but this does work in Edge or Chrome, is there a tool or simple code that I can use to get me the list of printers available?

Thanks 

Product version: Ensemble 2014.1

Comments

David Hockenbroch · Jun 15, 2023

I don't believe you can do that without an ActiveX control for a Windows client. You might be better off figuring out how to present whatever it is you're trying to print for the user - either display it in the browser, or let them download the document - and letting them print it from there.

0
Nezla  Jun 16, 2023 to David Hockenbroch

Do you know of any Activex that I can use, the one I'm using is a pretty old and doesn't work on newer versions ?

Thanks

0