简体   繁体   中英

How to get Client PC Printer name using C#.net

I am currently developing a web application to print data directly to the client's printer. The application works well in my pc but when I post the application to our web server, instead of retrieving the printer list in client's pc, the application is trying to look for printers that are installed in the server machine.

I developed my application using C# and I am using System.Drawing.Printing.PrinterSettings.InstalledPrinters to retrieve the printer list I realised it only trying to retrieve printer installed in the local machine. The PC is not connected to any network.

Is there any way to get the list of installed printer in the client computer?

System.Drawing.Printing.PrinterSettings.InstalledPrinters将提供托管应用程序的打印机列表,而且恐怕没有什么比在ASP.Net中获取客户端打印机列表更像了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM