Friday, 11 November 2016

JSP Jasper Report Configuration on Eclipse IDE

Hi!

      Today i am going to explain about the Jasper report and how to configure it on eclipse IDE,  Most common application are need to export the table data

About Jasper:


JasperReports is an open source Java reporting tool that can write to a variety of targets, such as: screen, a printer, into PDF, HTML, Microsoft Excel, RTF, ODT, Comma-separated values or XML files.
It can be used in Java-enabled applications, including Java EE or web applications, to generate dynamic content. It reads its instructions from an XML or .jasper file.

How to Install Jasper Plugin on Eclipse IDE :

Open Eclipse -> Help -> Eclipse Marketplace ->

Type & Search "Jasper"  and install the "Jaspersoft Studio"

Notes: The current version is Jasper6.3.1
now restart your IDE.


Steps to Configure Jasper :


  1. Goto your project -> WebContent -> WEB-INF ->
  2.  (Right Click) -> New -> Others ->
  3. Type and search "Report" -> select "Jasper Report" -> choose Blank template -> enter report name ->
  4. Create Adapter (Have to create a Data Adapter for 1st time) -> New -> Data base JDBC connection -> enter JDBC Driver name, URL, Username & Password -> Test Connection -> finish
  5. Choose cerated Adapter - > Next - > Enter Your Query -> Move the required fields from Left-to-Right -> next -> Next -> Finish
  6. By open the Outline Prespective to set the Fields & Values
  7. You may custom the design by your creativity.
  8. To check the report open your report and preview it.
  9. To convert from .jrxml into .jasper. you should compile the report by select the compiler icon.
Now you have successfully configure the Jasper..,

Notes: On my next post will show how to export as Excel and PDF with samples.

Thanks..,

By -  A.SelvaRaj..,

No comments:

Post a Comment