This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
 
subject: Discover Network Printers
 
Similar Threads
List of printers in the network
changing printer preferences
List of printers in the network
Send data to a network printer using JPS
need to get network printers in jsp