| 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: 16487
|
|
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.
|
 |
 |
|
|
subject: List printers - exclude the virtual ones?
|
|
|