Getting started with JasperReports // Reporting in Java (Part I) 1


This is the first of a series of articles to get you started with JasperReports. In first place, JasperReports is one of Java’s reporting engines. It’s very powerful and has lots of features that makes it comparable to commercial reporting solutions such as Crystal Reports.

The first thing you need to do to start using this great peace of software is go to the project page and download it (wait). In the project page there is some documentation that will help you getting started.

You must know that JasperReports is a reporting engine that integrates many capabilities. Reports are developed using JasperReports own markup language (jrxml). You can define datasources to access databases, report variables, fields and parameters. All of these can then be used to populate and display data in your report. Once the report is done you must compile it. Compiled reports can then be processed by JasperReport’s engine to be output in different formats (html, rtf, pdf, xls, printer…)

Reports can be developed either by hand, editing the report’s source in an editor (jrxml) or with an ide (GUI). There are several GUI editors for JasperReports there even is a NetBeans plugin (still beta). The one I use and in my opinion the best is iReport. Downloading iReport will be the easiest way to get started with jasper. There is some documentation available on the project’s page too. There you will find very good tutorials and quick start articles. The iReport package includes every library/jar you need, so it’s not necessary to download JasperReports package.

IReport

Now that you have iReport installed its time to practice report development (learn about bands, groups, fields, variables, parameters, datasources… In further articles I will show you some of the advanced capabilities of these components). If you just want to build reports for data stored in a database (JDBC accessible) you won’t need anything else, just iReport, so don’T worry about integrating jasperreports with your application yet. By now you can get used to run your reports by using the menu option “Build -> Run Report”

Tweet about this on TwitterShare on FacebookShare on LinkedInShare on Google+Pin on PinterestEmail this to someone

Leave a comment

Your email address will not be published. Required fields are marked *

One thought on “Getting started with JasperReports // Reporting in Java (Part I)

  • Mahdalina

    Alhamdulillah klo posting serehdana saya bisa membantu tapi terus terang saya blom pernah coba jadi gak bisa bantu banyak tapi coba bisa di cek ini. Kalo link yang saya kasih bisa membantu tolong di info ya biar saya juga jadi tahu. Thanks.