Prerequisites:
JasperServer Community 7.1,HTML
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.
Step 1: Created a Sample Report in Jasper Server
Step 2: Created a web page containing a button and div with id : reportContainer.Whenever we click on the button , the jasper report is rendered in the container(div) using java script iframe code.
![](https://www.helicaltech.com/wp-content/uploads/2019/02/embeddingjasperserver1.png)
![](https://www.helicaltech.com/wp-content/uploads/2019/02/embeddingjasperserver2.png)
Step 3:Use the below script to render a Report in HTML on button click
Passing the Jasperserver URL and Login Details and Report URI
![](https://www.helicaltech.com/wp-content/uploads/2019/02/embeddingjasperserver3.png)
In renderDashboard function, we are validating the Jasper credentials and Rendering the Report
![](https://www.helicaltech.com/wp-content/uploads/2019/02/embeddingjasperserver4.png)
Using IFrame to display the Rendered dashboard in HTML
![](https://www.helicaltech.com/wp-content/uploads/2019/02/embeddingjasperserver5.png)
Step 4: Save this HTML in below location by creating a new folder ‘html’ in webapps
<jasper home>\\apache-tomcat\webapps\html
Step 5: Access the HTML file from below URL and click on Render Dashboard
Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.
http://localhost:8080/html/renderStore.html
Output :
Thank You,
Satya Gopi
Helical IT Solutions Pvt Ltd
![logo](https://www.helicaltech.com/wp-content/uploads/2019/01/Quotes.png)
Best Open Source Business Intelligence Software Helical Insight Here
![logo](https://www.helicaltech.com/wp-content/uploads/2019/01/logo.png)
A Business Intelligence Framework
![logo](https://www.helicaltech.com/wp-content/uploads/2019/01/Quotes.png)
Best Open Source Business Intelligence Software Helical Insight is Here
![logo](https://www.helicaltech.com/wp-content/uploads/2019/01/logo.png)
CODE NOT CLEAR, KINDLY SHARE CODE