I use the following code to retrieve installed and shared printers
using (ManagementClass printerClass = new ManagementClass("win32_printer"))
{
ManagementObjectCollection printers = printerClass.GetInstances();
foreach (ManagementObject printer in printers)
{
ddlPrinters.Items.Add(new ListItem(printer["Name"].ToString(), printer["Name"].ToString()));
}
}
While development, everything is ok, but after deployment of website, only installed printers are retrieved?
Any ideas?