Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send data to a network printer using JPS

 
Regis Santos
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm trying to print to network printers using Java Print Service. I did it with printers that I have installed in my OS. But I want to print documents to printers that aren't installed in my operational system.

The method PrintServiceLookup.lookupPrintServices() returns only the printers that I have configured in my OS. I want to invoke a method where I can set the printer path name that isn't necessarily installed in my system.

Thanks a lot.
[ January 07, 2008: Message edited by: Regis Santos ]
 
Liam Tiarnach
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because you can only access printers that are currently install on your pc whether it be local or network. In regards to network printers, you would need rights and drivers in order to print to them.

[ January 22, 2008: Message edited by: Liam Tiarnach ]
[ January 22, 2008: Message edited by: Liam Tiarnach ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic