wood burning stoves
The moose likes Java in General and the fly likes Discover Network Printers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Discover Network Printers" Watch "Discover Network Printers" New topic
Author

Discover Network Printers

John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Hello JGuru,
I would like to use Java to discover network printers that are not added into the box that I run my code on. Could someone give some hint or sample how to do so? Thanks.

John
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I don't think you can do this with the Java Print Service. It queries the machine the JVM is running on to see what printers that machine knows about, not what may all be avaliable to it through the network.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Thanks Paul,
But I have printer name and port of the printer, can I monitor status of that printer, given that the box the java code running on does not know about that printer?

John
 
Have you checked out Aspose?
 
subject: Discover Network Printers
 
jQuery in Action, 3rd edition