I have created one .jasper file for my project. I am getting an output in JasperViewer window, but instead of that I want to see it in HTML output form. How can I do that?
The JasperReports classes and interfaces are used to generate a PDF/Excel report from the catalog. xml file. Add an XML file to the JasperReports project with File>New. In the New Gallery frame select General>XML in the Categories listed and XML Document in the Items listed.
Jasper report project comes with a sample code to export reports to HTML. It's not only a single HTML file, but at least it requires a 1x1 transparent gif used for decorating. It's not a good idea to export reports to HTML files because of portability and printing issues. You can however show HTML reports inside your webserver (which is very commone) using that sample code. See \demo\samples\webapp application for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With