Hi,

I've an application which uses JPanel, and I embedded FOP to have the possibility to print information contained in a frame.
I followed the code provided in your example called "ExampleObj2PDF.java", and I manage to transform informations in a PDF file. But in the beggining, i'd like to print these information directly, without generating a PDF file.
The problem is if I specify Driver.RENDER_PRINT when I set the renderer of the Driver ( by this command : "driver.setRenderer(Driver.RENDER_PRINT);" ), then I obtain an error indicating :
"IllegalArgumentException : Use renderer form of setRenderer() for PRINT"
which is normal in according to the class Driver. But if I use the method "setRenderer(Renderer renderer)", I can't put a PrintRenderer like parameter (abstract class)...
Can you help me please, telling me how can I do to specify that I want a printed output?


Thanks.

Rudy


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



Reply via email to