aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes List printers - exclude the virtual ones? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "List printers - exclude the virtual ones?" Watch "List printers - exclude the virtual ones?" New topic
Author

List printers - exclude the virtual ones?

Cole Terry
Ranch Hand

Joined: Nov 23, 2011
Posts: 45
I use Java to enumerate all printers installed on a computer. However it shows the virtual printers also. I want to shown only the real printers, but checking out the Java Print API I didn't find any clue.
Does any one experience the same problem?
Maciej Matiaszowski
Greenhorn

Joined: Aug 14, 2011
Posts: 2

The virtual printers does not differ at all from the real printers. Even the operating system cannot detect a difference. Maybe depend on the user's input.
Cole Terry
Ranch Hand

Joined: Nov 23, 2011
Posts: 45
Maciej Matiaszowski wrote:The virtual printers does not differ at all from the real printers. Even the operating system cannot detect a difference. Maybe depend on the user's input.


Thanks,
You are properly true, but I see some third party Java applet can detects only real printers. Maybe they are using some tricks that we don't know?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18662
    
    8

Cole Terry wrote:You are properly true, but I see some third party Java applet can detects only real printers. Maybe they are using some tricks that we don't know?


They are certainly using a trick that I don't know, but that isn't saying much because I know almost nothing about connecting to printers in Java. So why don't you just ask them? (It's quite possible they are struggling with their applet's inability to detect virtual printers, you know.)
Cole Terry
Ranch Hand

Joined: Nov 23, 2011
Posts: 45
Paul Clapham wrote:
Cole Terry wrote:You are properly true, but I see some third party Java applet can detects only real printers. Maybe they are using some tricks that we don't know?


They are certainly using a trick that I don't know, but that isn't saying much because I know almost nothing about connecting to printers in Java. So why don't you just ask them? (It's quite possible they are struggling with their applet's inability to detect virtual printers, you know.)


I am given a task that list all available printers on a computer (exclude the virtual ones). I don't know any guys from the company that writes the applet, so I hope to find an answer here.
Thank you for being interested in this topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: List printers - exclude the virtual ones?