1

I am a bit new in this topic. Actually I want list of Printers which are connected to my PC currently in Java. I referred this link for solving my problem. But the problem is, it is giving me all the printers whose drivers are installed in my PC (even if they are not connected right now).

How can I get list of Printers which are connected currently?

Community
  • 1
  • 1
Sarjit Delivala
  • 567
  • 2
  • 13
  • 25
  • see here:http://docs.oracle.com/javase/tutorial/2d/printing/printable.html – Rafiq Jun 15 '15 at 11:45
  • @rafiq : Thank you for your support. I didn't find how to get currently connected printers with this class. Can you please help me? Thank you in advance. – Sarjit Delivala Jun 17 '15 at 12:39

1 Answers1

1

Check the PrinterStateReason class.

Buda Gavril
  • 21,409
  • 40
  • 127
  • 196