• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get names of all printers configured

 
Vamsi Rayavarapu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to get names of all printers configures on a system.
How to get it
Please help me
 
Darrin Cartwright
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vamsi,

Try the following method:

This should list ALL of the printers. Typically you would want to specify a DocFlavor and an PrintRequestAttributeSet to the lookupPrintServices() method, rather than null, when you are looking for a particular printer.
[ May 17, 2007: Message edited by: Darrin Cartwright ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!