yogesh sharma

yogesh sharma

  • NA
  • 7
  • 13.7k

System.Drawing.Printing.PrinterSettings.InstalledPrinters is not getting network printer list

Aug 9 2011 9:12 AM
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);


Answers (7)