• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help on Reports in java.

 
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic