Can the status of a printer be checked programtically in c#

B

Bob

Greetings,

I have a written an app that checks to see what printers are available to a
machine, it then populates a combobox and allows the user to choose any of
the printers.

Basically I populate a list using PrinterSettings.InstalledPrinters string
array

Is there a way to check the online status of any of these printers ... I
created a method that can 'ping' the IP address .. but I dont know what IP
address they are at so no joy there.

Is there a way to 'programatically' query the printer name / port to its IP
address or is there another way to check whether a printer is alive, dead or
having 'issues'.

regards Bob.
 
M

Michael Nemtsev

Hello Bob,

Have u tried smth from there http://groups.google.com/groups?q=dotnet+printer+status
?

B> Is there a way to check the online status of any of these printers
B> ... I created a method that can 'ping' the IP address .. but I dont
B> know what IP address they are at so no joy there.
B>
B> Is there a way to 'programatically' query the printer name / port to
B> its IP address or is there another way to check whether a printer is
B> alive, dead or having 'issues'.

---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top