Tutorial: Reporting in JAVA

In: Computers

April 23, 2006

Here's a little tutorial on the report generation in Java.

The technologies used are:

- ECLIPSE
- JDK 1.5 TIGER
- Jasper Report framework for editing report
- iReport design tool for reporting
- MySQL

et comment générer ce rapport à partir d'un code contenu dans une classe JAVA. This tutorial shows how to create a simple report with iReport designer on a MySQL database and how to generate this report from a code within a Java class.

Below is the tutorial explaining everything, I thank you in advance for your comments, questions or other. You can contact me on eric.reboisson @ laposte.net

Download the document: Report Generation with Jasper Report.pdf

Another paper (slightly outdated) is available at the following address http://ericreboisson.developpez.com/tutoriels/jasper-report/

Your comments are welcome on improving this tutorial.

Happy reading!

If you liked this post, broadcast using the following services:
  • Twitter
  • Facebook
  • Ping.fm
  • email
  • del.icio.us
  • Google Bookmarks
  • Digg
  • Technorati
  • FriendFeed
  • StumbleUpon
  • LinkedIn

Tickets on the same subject:

  1. Short course on Object Oriented Programming in JAVA I just file a new article on the site ...
  2. Tutorial on installing subversion WINDOWS I just finished this article on http://ericreboisson.developpez.com/tutoriels/install-subversion/ This DEVELOP ...
  3. Sun Certified Java Programmer (SCJP) Standard Edition 5 (CX-310-055), it's done I just spent today certification "Sun Certified Java ...
  4. Tutorial and sources for ANT ANT Tutorial Installation Prerequisites for use DOS Download ...
  5. Install Java JDK 1.5 on an Ubuntu download binary Java JDK 1.5 for Linux ...

Subscribe without commenting

No response to Tutorial: Reporting in JAVA

Avatar

1 - chris

November 17th, 2005 at 9 h 20 min

Hi Eric,
I'm changing and Jasper IReport for some time, I amused myself a little. But I wonder to what extent it can replace our traditional tools, what its limitations are in fact? Have you seen cases where it is not suitable?

Avatar

2 - eric

November 17th, 2005 at 13 h 14 min

For my part I only audited these tools and Jasper iReport through an overhaul of BO report to these tools.

Clearly the editors based on Jasper are not as the flowing as BO, or Crystal Report.

However, the Jasper API allows many things, but now it takes a bit of code.

The big plus is free, its integration with Java, then in terms of performance I do not know ...

What are your standard tools?

Avatar

3 - chris

November 17th, 2005 at 15 h 06 min

BO reports and ORACLE (something unspeakable ...)

Avatar

4 - eric

November 17th, 2005 at 16 h 52 min

The reports are complex to edit?

Avatar

5 - patrick_30965@yahoo.fr

January 27th, 2006 at 16 h 53 min

I am looking for documents that explain how to use and JasperReport derivés.Merci
Pat depius italy.

Avatar

6 - Seif

March 24th, 2006 at 7 h 04 min

Hi Eric,
Thank you for this information relevant.
I'm no expert but I tried to install ireport. in your documentation (report generation with Jasper report) I think it lacks a link to load libs.zip.
can you send me this link stp.

Cordially.
Seif.

Avatar

7 - eric

March 24th, 2006 at 10 h 53 min

Indeed, the link is missing for this archive libs.zip

In fact I forgot to include it initially tutorial and following a crash of my machine I lost the original sources.

I would therefore have to recreate this tutorial, but due to time at the moment it is not possible.

For information, this archive contains the JAR libs.zip necessary to JasperReport, mysql JDBC.

This is normally not too difficult to find on the Net.

As soon as I would have a little time, I put the tutorial up to date.

Avatar

8 - Alex

April 21st, 2006 at 11 h 49 min

# Our problem:
Integration of an engine to a document editing software package J2EE Web.

# Constraints:
- In Java, open source (if possible)
- That can support complex document templates (report as dynamic etc. ..)
- Managing many output format: DOC / RTF HTML Excel PDF ODT
Word compatibility is a major constraint.
Moreover, the opening to the free format ODT is complex because relatively recent ...

Our # tracks:
Different products are currently in the study:
"JasperReport" or "Birt reporting" associated with other components or libraries.
In 2 cases, product not 100% satisfactory for the constraints mentioned previously.

I realize the ideal tool to search but ...

Avatar

9 - eric

April 21st, 2006 at 16 h 38 min

But it seems that JasperReport Birt and are in line with what you seek.

Otherwise see the sites hosting open source projects exist if other:

http://www.sourceforge.net
http://www.freshmeat.com
http://www.tigris.org

Do not forget to look at the types of licenses if you are using components in a J2EE software package (you do not find yourself selling a product based on LPG and then you realize that all your product has become GPL ... ;-()

Good luck

Avatar

10 - eric

April 23rd, 2006 at 23 h 34 min

The tutorial is updated since yesterday developpez.com

Avatar

11 - eric

February 13th, 2007 at 19 h 28 min

For lack of time right now, I advise you to post your question in the forums Developpez.com, there is a section JasperReport.

Avatar

12 - PA

July 17th, 2007 at 16 h 01 min

Hello,
I am doing the software editions and more particularly to the edition of JTable in java. Not wanting to make a jasper for each, I would make a total package sizes of the different columns would be flexible depending on what I have in the title of my columns. I wanted to know if this was possible and how? thank you
goodbye

Avatar

13 - eric

July 18th, 2007 at 11 h 50 min

Hello, For lack of time to respond, it would be best to ask this question in the forums http://www.developpez.com ago on a forum on this site JasperReport. Good luck.

Avatar

14 - Phil

July 18th, 2007 at 11 h 54 min

Hello,

I am using ireport recently. I saw that there was a way to connect via Hibernate and Spring, but I have every time a big mistake. Have you ever tried?

Avatar

15 - eric

July 19th, 2007 at 9 h 21 min

Hello, For lack of time to respond, it would be best to ask this question in the forums http://www.developpez.com ago on a forum on this site JasperReport. Good luck.

Write a comment

Get Adobe Flash player Plugin by wpburn.com wordpress themes

About the blog


Photostream

    I do not like snow ... 41 71 91 111 121
  • mohamed: c vraimen debile still conri!! [...]
  • Eric Reboisson: training brought me bcp because bcp was covered features of Spring, the Atti [...]
  • Elricco: Hi Eric, I also intend seriously to spend the Spring certification. I wanted to s [...]
  • Jacky Von der Bruhme: Me I'd rather have a drink at the cafe and not of m'soucier or she is my wife p'tiote c [...]
  • Reboisson Eric: Thanks for your comment and for this information. [...]

Translator

French flagEnglish flag

Partners

tomtom gps