This class locates in System.Drawing.Printing namespace so you need to add reference System.Drawing and then import it with using statement:using System.Drawing.Printing;
using
System.Drawing.Printing;
To get all the printers available,you need to iterate the string values through PrinterSettings
For example:Add a ListBox to your windows application and then use foreach statement for iteration:
foreach
(
string
printname
in
PrinterSettings.InstalledPrinters)
{
listBox1.Items.Add(printname);
}
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: