Embedding Jasper Server Report using IFrame

Posted on by By Satya Gopi, in Jaspersoft | 1

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.

Html Code


Output


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

In renderDashboard function, we are validating the Jasper credentials and Rendering the Report

Using IFrame to display the Rendered dashboard in HTML

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.

Click Here to Free Download

http://localhost:8080/html/renderStore.html

Output :

Thank You,
Satya Gopi
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight Here

logo

A Business Intelligence Framework


logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

5 1 vote
Article Rating
Subscribe
Notify of
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

CODE NOT CLEAR, KINDLY SHARE CODE