Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Print on Remote Server

807580Oct 14 2009 — edited Oct 14 2009
Hi,

I am trying to print a document using PrintService. The printer is located on a remote server and it's not installed locally (in my computer). That means that I have to print the document through that Print Server.

This the code:

PrintServiceAttributeSet serviceAttributeSet = new HashPrintServiceAttributeSet();
serviceAttributeSet.add(new PrinterName("\\\\serverName\\printerName", null));

PrintService[] services = PrintServiceLookup.lookupPrintServices(null, serviceAttributeSet );

that problem is that the printer is not found and I get an exception: No suitable print service found.

I've been searching on the web and I found that a lot of people had the same problem but they got no answer.

Is there any way to print documents on a remote server using the print service without having the printer installed locally.

Thanks a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2009
Added on Oct 14 2009
2 comments
433 views