如何获得计算机的所有打印机列表 [英] How to get the list of all printers in computer
本文介绍了如何获得计算机的所有打印机列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要连接到计算机的所有打印机列表?
I need to get the list of all printers that connect to computer?
我如何在C#中做到这一点,的WinForms?
How I can do it in C#, WinForms?
推荐答案
试试这个:
foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
{
MessageBox.Show(printer);
}
这篇关于如何获得计算机的所有打印机列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文