On Mar 2, 2007, at 21:33, liam grimes wrote:

Hi,
I need to print my documents to a none default printer.. Is it possible to set it up in the user agent or the FopFactory currently it only prints to the default printer.
Unfortunately not AFAICT.

FOP's PrintRenderer creates the printerjob via java.awt.print.PrinterJob.getPrinterJob(), and never alters the associated PrintService (= the printer), so the default is always used, and it is currently not possible to override this. :/

At first glance, it doesn't seem too difficult to implement an extra parameter (or renderer configuration option) for print output, and allow the user to specify the PrintService to use... If you'd like to do the community a favor, and send in a patch, that would be much appreciated.

OTOH, if you dislike the idea of diving in the FOP sources, another option could be to render to PDF or PS, and send that output to the printer of your choice.


Cheers,

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to