Information sharing (my favorite web, food, tourism, etc ... and a bit of everything) and new technologies
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!
Tickets on the same subject:
No response to Tutorial: Reporting in JAVA
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?
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?
3 - chris
November 17th, 2005 at 15 h 06 min
BO reports and ORACLE (something unspeakable ...)
4 - eric
November 17th, 2005 at 16 h 52 min
The reports are complex to edit?
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.
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.
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.
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 ...
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
10 - eric
April 23rd, 2006 at 23 h 34 min
The tutorial is updated since yesterday developpez.com
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.
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
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.
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?
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.