aspose file tools*
The moose likes Java in General and the fly likes Help on Reports in java. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help on Reports in java." Watch "Help on Reports in java." New topic
Author

Help on Reports in java.

dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
Hi All


Currently i am working on a small project in Swings
which just takes data from excel sheet(Using JDBC) and inserts it in database table(SQL) for furthur processing ,later i have to process the table data i.e perform some calculations on it .After processing is done i need to create report (Word document) ,please if anyone can suggest me
how can i proceed ahead with reports in java since this is the first time i came across reports in java ,i just googled up as well i came to know about ireReports,Jasper Reports but i am still not that clear with steps that i can take to create reports.

And one more doubt is can anyone advice me onto which is the best
format(Like word document) for creating reports in Swing application
?I mean
to say through which i can easily get data from table using JDBC
and proceed for reports?


Any suggestion or any guidance will be realy helpful.

Thanks in advance.
Dhwani:>Winning is not important but it is the only thing.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41572
    
  54
I would recommend JasperReport for creating reports with Java. Its web site has plenty of examples that show how to accomplish common reporting tasks (including retrieving data from a DB).

Word is a particularly bad format for creating reports; there's very little support for DOC files anywhere in the Java space. JasperReport can generate PDF, XLS and RTF formats (amongst others). You can use RTF if you need something that is editable in Word.

It also has classes for displaying reports in Swing GUIs; check the documentation for examples.
[ March 26, 2008: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
Hi Ulf Dittmer !

Thanks for the reply i went through JasperReports
below is the link for download of JasperReports
JasperReport download

but now i am confused onto which library i will need
to download i.e which version i will require to download since there are 3 options mentioned and many other files like .gz .tar and jar ofcourse for class files.
if want to create RTF report instead of Word Document ,

which jar file i must access through classpath ,
i mean to say how can i make JasperReport library accessable in my Swing Application ?to pass data from my table to report.


Any suggestion and any help on it will be realy of great help.

Thanks in advance

Dhwani:>Winning is not important but it is the only thing.
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
Hi All

Now i am getting confused ,because i thought
of using JasperReports and creating RTF format

but i am creating a Standalone Swing Application
using JBuilder ,


i googled a lot but no information
on Creating reports in a standalone Swing Application.


As per i read i think only web based application can use
JasperReports...............


so no solution i am having on how can i create report
in my Standalone Swing application?


Any ideas ,or any suggestions on how can i get through this
with my problem of creating Reports will be of great help.Otherwise i have to recreate
my whole application.....which is difficult for me at this stage.....



Thanks in advance.

Dhwani:>Winning is not important but it is the only thing.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41572
    
  54
JasperReports works in desktop applications just as it does in web applications. What led you to believe otherwise? Did you read the documentation on the Jasper site? There are examples and FAQ entries that talk specifically about Swing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help on Reports in java.