File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Discover Network Printers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Discover Network Printers
 
Similar Threads
List of printers in the network
changing printer preferences
List of printers in the network
need to get network printers in jsp
Send data to a network printer using JPS