Retrieving list of all installed printers via JavaScript

僤鯓⒐⒋嵵緔 提交于 2020-01-23 16:22:45

问题


I have been given a screenshot from a web page which shows the list of all installed printers accessible by the client (local and network ones) in a combobox and let user select one. Even there is a button to refresh the list!

I do not have access to the page and cannot prove the functionality. Is that even possible to do this or simulate this job by any means in a web page?


回答1:


If I had to hazard a guess, I'd say that it's most likely a list of network printers, retrieved via some server-side code. The "Refresh" button seems to back that up as there's obviously AJAX at play. Simply, though, there's no way to get this information client-side via JavaScript, so there's got to be something else going on.




回答2:


You can use neodynamic's product. No ActiveX, no flash etc. only install small app on clien side(its free) but .net sdk or php sdk is not free.

Web Site: http://www.neodynamic.com/products/printing/raw-data/aspnet-mvc/download/

Sample: https://github.com/neodynamic/WebClientPrint2-MVC5-Sample




回答3:


Looks like it might be possible on Windows, but I'm not a Windows-guy so I can't evaluate this: http://www.codeproject.com/Questions/104211/How-to-get-the-client-printer-name-using-JavaScrip



来源:https://stackoverflow.com/questions/25529877/retrieving-list-of-all-installed-printers-via-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!