Henrik wrote:

>at the moment i am printing directly from my application using fop
>printrenderer, but now i need a printdialog
>to select a specific printer ? i looked at PreviewDialog.java, but without
>any idea howto solve my problem?

When printing off the command-line, Fop looks for a java system property
called "dialog", and if it's there it will pop up the AWT Print Dialogue
that lets you choose printer. 
Just adapt either fop.bat or fop.sh so that java is invoked with this
option: -Ddialog=true.

If you've embedded FOP then it's a bit more complicated but a look at
PrintStarter.java might be useful.

Regards,
Tom Schutz

Reply via email to