Print on Remote Server
807580Oct 14 2009 — edited Oct 14 2009Hi,
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