How to get the whole Printerlist
Helo
I have to show to the user of my webservice all printers installed and visible in the serveur i have used the fuction
private void Form1_Load(object sender, System.EventArgs e)
{
PrintDocument prtdoc = new PrintDocument();
string strDefaultPrinter = prtdoc.PrinterSettings.PrinterName;
foreach(String strPrinter in PrinterSettings.InstalledPrinters)
{
comboBox1.Items.Add(strPrinter);
if (strPrinter == strDefaultPrinter)
{
comboBox1.SelectedIndex = comboBox1.Items.IndexOf(strPrinter);
}
}
}
But the probleme it gives me just local printers but not remote printers.
when i test the same function in Winform i see that it gives all printers.
How can i get all printers in webservices ?
Thank you in advance