System.Drawing.Printing.PrinterSettings.InstalledPrinters is not getting network printer list
Hi,
I am using System.Drawing.Printing.PrinterSettings.InstalledPrinters to get network printer list in WCF service hosted in IIS. But this is not giving network printer list . Same is giving network printer list if use in desktop application.
I am using following code to get printer list using WCF service hosted in IIS.
string [] installedPrinters = new string[System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count];
System.Drawing.Printing.PrinterSettings.InstalledPrinters.CopyTo(installedPrinters, 0);