sendPrintFromScreen problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sendPrintFromScreen problem

Tim Frosh
Hi all,
 I  try to print pdf with sendPrintFromScreen service, but the sendPrintFromScreen service cannot find my windows shared printer (from another local pc) with given printer name. When i looked at the code (OutputServices.java:165) i found this comments:
            //PrintService[] services = PrintServiceLookup.lookupPrintServices(psInFormat, psaset); // TODO: selecting the printer by URI seems to not work
            PrintService[] services = PrintServiceLookup.lookupPrintServices(psInFormat, null);
Do someone knows what is the reason for not finding the printer and is it related to this comments ?
 How can i solve this problem ?

Any help or advice is greatly appreciated!
Tim


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

Reply | Threaded
Open this post in threaded view
|

Re: sendPrintFromScreen problem

Jacopo Cappellato
Right now you have to configure the printer in the box in which OFBiz is
running and use that name (the printer can of course be a a lan printer
phisically connected to a different box).

Jacopo

Tim Frosh wrote:

> Hi all,
>  I  try to print pdf with sendPrintFromScreen service, but the sendPrintFromScreen service cannot find my windows shared printer (from another local pc) with given printer name. When i looked at the code (OutputServices.java:165) i found this comments:
>             //PrintService[] services = PrintServiceLookup.lookupPrintServices(psInFormat, psaset); // TODO: selecting the printer by URI seems to not work
>             PrintService[] services = PrintServiceLookup.lookupPrintServices(psInFormat, null);
> Do someone knows what is the reason for not finding the printer and is it related to this comments ?
>  How can i solve this problem ?
>
> Any help or advice is greatly appreciated!
> Tim
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com