How to export JasperReport to HTML?

前端 未结 2 547
不思量自难忘°
不思量自难忘° 2020-12-18 07:14

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 d

2条回答
  •  心在旅途
    2020-12-18 07:57

    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.

提交回复
热议问题