For Programmers: Free Programming Magazines  


Home > Archive > C# > April 2006 > Programmtically finding a printer on the network.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Programmtically finding a printer on the network.
sushma.kantharaj@gmail.com

2006-04-26, 4:02 am

Hi,

I am trying to populate a drop down list with a list of printers
available on the network. The user should be able to select a printer
from the drop down list.

Current Implementation:- The code below gets the list of printers
installed on my computer.

using System.Drawing.Printing;
foreach (String strPrinterName in PrinterSettings.InstalledPrinters)
{
cmbPrinters.Items.Add(strPrinterName);
}

Requirement:- I need to get a list of all the printers on the network,
not just the printer installed on my computer but all printers that are
not installed on my machine as well.

Please let me know if there is any solution to this problem.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com