About Rajith Delantha

Rajith is an software engineer, open source contributor and love to develop application based on open source projects.

Birt Made Report Easy

Here is the complete guide to build report in Eclipse using Birt plugin.

Birt or Business Intelligence and Reporting tool is a tool that can build report without writing toooo many java codes. If you are using ireport you know what I’m talking about :) (crystal report.. no point :D)

Main draw back in Ireport is we have to write too many codes to build simple report that can integrate to java application. But in Birt no need to write codes just drag n drop.

Birt is a Eclipse Plugin (Only to Eclipse) that you can download. So in this article we demonstrate how to build some sample report with ease of drag n drop :)

Here we go…

Step 1

  • Download Eclipse (http://www.eclipse.org/)
    • You can download eclipse for report users (Comes with Birt Plugin)
  • If you already have eclipse just install the birt plugin
    • Help –> Install New Software –> Click Add
    • Give name as Birt and give location as http://download.eclipse.org/birt/update-site/3.7-interim/
    • Click Ok
    • Select All packages (tic) and accept the license agreement (whether we like it or not :P ).
    • It will take some time to download all the packages and after the download restart the eclipse.

Step 2

  • Before make project adjust your perspective to Report Design
  • To do that Window –> Show View –> Other
  • Select Report tab and select all the fields

Step 3

  • Now its the time to create new project
  • File –> New –> Other –> Business Intelligence and Reporting Tool –> Report Project
  • Give a Name for the Project and click finish.

Step 4

  • Now the Project is created. But we have to create a report.
  • To do that File –> New –> Other –> Business Intelligence and Reporting Tool –> Report
  • Give a name for report and and click Next.
  • In here you can choose the report template. (If you have one you can use it. but before you have to register the report template. will talk about this later)
  • I choose Blank Report and click Finish.

Step 5

  • Now report is ok. But we need to display data.
  • Click Palette in Left Hand side (this is the place that all controls have) and drag n drop Table component to report design.
  • Give number of rows and columns and click Ok.
  • Now you can see the table in report view (layout you are currently in)

Step 6

  • So the basic designing part is done. but data?? (give me 5 min)
  • Click on the Data Explorer (right hand sof Palatte) –> right click and select new data source
  • In here we can configure the database. For this demo we configure in built database that comes up with Birt. (Classic Model) (Others will talk later)
  • Select Classic Models –> Next –> Finish.

Step 7

  • Right click data set –> new data set –> Next
  • In the query window you can see the databases available.
  • Select CLASSICMODELS expand it.
  • In the query text area you can write the SQL query.
  • In here we select customer name, customer first name and customer phone (You can do this by double clicking the table values in Available items)
  • After click Ok you can see the window edit data set (if you have any query issue it will show some error window)

Step 8

  • Click Preview tab (in layout are) and you can see the output of data.
  • Run –> View Report –> In web browser –> you can see the report in web browser.
  • Can give more advance function like export to doc, pdf, ppt and many more.

Here is some basic things about Birt report. But Birt is more than that. You can write javascript to get more functionality. We will talk about this later. That means the Advance Birt :)

Reference: Birt Made Report Easy from our JCG partner Rajith Delantha at the Looping around with Rajith… blog.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


one × 5 =



Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close