Thanx for the reply. We wrote an class  to do unix printing using the PS
MIME I know that works, will then write an class similar like it for the
windows printing... I think it is time to put on some scuba gear and dive
in.. :) ,, Just one thing while I was stepping through an break point I saw
that the user agent sets up a kind of printerjob via an renderer . Did you
play with it..?


On 3/2/07, Andreas L Delmelle <[EMAIL PROTECTED]> wrote:

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