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 :
- Goto your project -> WebContent -> WEB-INF ->
- (Right Click) -> New -> Others ->
- Type and search "Report" -> select "Jasper Report" -> choose Blank template -> enter report name ->
- 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
- Choose cerated Adapter - > Next - > Enter Your Query -> Move the required fields from Left-to-Right -> next -> Next -> Finish
- By open the Outline Prespective to set the Fields & Values
- You may custom the design by your creativity.
- To check the report open your report and preview it.
- 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..,