How to get the list of all printers in computer

前端 未结 6 1083
长发绾君心
长发绾君心 2020-11-29 17:58

I need to get the list of all printers that connect to computer?

How I can do it in C#, WinForms?

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 18:52

    Look at the static System.Drawing.Printing.PrinterSettings.InstalledPrinters property.

    It is a list of the names of all installed printers on the system.

提交回复
热议问题