由网友(3.雾浔.)分享简介:我需要连接到计算机的所有打印机列表?I need to get the list of all printers that connect to computer?我如何在C#中做到这一点,的WinForms?How I can do it in C#, WinForms?推荐答案试试这个:foreach...
我需要连接到计算机的所有打印机列表?
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);
}
相关推荐
最新文章