I have a problem generating a report in PDF format with the ReportEngine-API.
I want to generate a report depending on the user's choice on the GUI. HTML or PDF.
For the HTML stuff, the implementation works fine. Now I wanted to extend my
generator tool that it also can generate PDF.
Like it is described in the example on
I thought it would be enough to only change the specific IRenderOption:
Instead of HTMLRenderOption I use PDFRenderOption and chenged the output file to
e.g. "report1.pdf" in case of PDF. Unfortunately this doesn't work.
Indeed there is a new file in the output location "report1.pdf", but when I want to
open the file, the PDF-reader says that it isn't a PDF file and that it looks like HTML.
Now I suppose that the rendering still is in HTML instead of PDF.
When I let show me the report within the designer (Run -> View Report -> As PDF) the report is shown
as PDF in the PDF-reader.
Where is my fault?
Did I forget something to get my generator tool producing PDF?
The attached file is a zip file of an eclipse example project that demonstrates my generator-tool.
The generator tool is a command-line-tool. It can be run from within eclipse, the launch-configs are also contained in the archive. The database is the BIRT-example database. So it should be easy to get the program run.
Thanks for any help!
Number of downloads: 11