Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export JasperReport to HTML?

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?

like image 644
om. Avatar asked Oct 10 '09 07:10

om.


People also ask

How do I create a report from Jasper in Excel?

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.


1 Answers

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.

like image 163
Mohsen Avatar answered Sep 27 '22 15:09

Mohsen