AW: Examples
Its not an error, its wrong java code RENDER_PDF is s static member variable of the Driver class, so you have to type: driver.setRenderer(Driver.RENDER_PDF); Cheers Mirko -Ursprungliche Nachricht- Von: Lee Goddard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. Mai 2002 16:39 An: [EMAIL PROTECTED] Betreff: Examples On the examples page of the xml.apache.org/fop site, http://xml.apache.org/fop/embedding.html there is this sample: Driver driver = new Driver(new InputSource (args[0]), new FileOutputStream(args[1])); driver.setRenderer(RENDER_PDF); driver.run(); I thought perhaps RENDER_PDF referred to an (imported) constant. But I from Java1.4 am told: C:\PXML\_printing\test.java:33: cannot resolve symbol symbol : variable RENDER_PDF location: class test driver.setRenderer(RENDER_PDF); Could someone please tell me of my error? TIA Lee Lee Goddard perl -e while(1){print rand0.5?chr 47:chr 92}
AW: Examples
Hallo Lee, I think RENDER_PDF is an defined public Constant of the Class Driver. If I?m right, the following code must function: driver.setRenderer(Driver.RENDER_PDF); -Ursprungliche Nachricht- Von: Lee Goddard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. Mai 2002 15:39 An: [EMAIL PROTECTED] Betreff: Examples On the examples page of the xml.apache.org/fop site, http://xml.apache.org/fop/embedding.html there is this sample: Driver driver = new Driver(new InputSource (args[0]), new FileOutputStream(args[1])); driver.setRenderer(RENDER_PDF); driver.run(); I thought perhaps RENDER_PDF referred to an (imported) constant. But I from Java1.4 am told: C:\PXML\_printing\test.java:33: cannot resolve symbol symbol : variable RENDER_PDF location: class test driver.setRenderer(RENDER_PDF); Could someone please tell me of my error? TIA Lee Lee Goddard perl -e while(1){print rand0.5?chr 47:chr 92}
Re: AW: Examples
Kondert Uwe wrote: I think RENDER_PDF is an defined public Constant of the Class Driver. If I?m right, the following code must function: driver.setRenderer(Driver.RENDER_PDF); This should work. Look at docs/examples/embedding/FopServlet.java J.Pietschmann