简体   繁体   中英

How can I get a list of all of the available print/fax drivers

如何从操作系统中获取所有打印机驱动程序和传真驱动程序的列表?

Well I am not sure if it is the answer that you are looking for but you can get the name of all installed printers on the local machine with the following code:

foreach (String printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
{
    //Do your stuff
} 

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