This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My Destop application use javax.print.* to detech printer. However, what i get are all the printers that are in Control Panel/Printers and Faxes folder. How can i distinguish hardware printers( real printer) and software printers(got from installing software:Snagit 9, ... ) to remove software printers from printer lists?
Can i select correct printers from function: PrintServiceLookup.lookupPrintServices with correct conditions?
Joined: Jan 07, 2010
I thinks i can distinguish hardware printer and software printer(cutePDF, Snagit ..) by their attributes. For example, software printer do not connect to computer through LPT, COM, or USB port, but hardware is reverse. But i still did not find the instance of this in java.
Here is what i got now, I m not sure this work for all hardware printer.
[Edit Insert line breaks in "code". Such long lines go off the edge of the screen and are difficult to read.[/edit]