aspose file tools*
The moose likes Other Open Source Projects and the fly likes JasperReports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JasperReports" Watch "JasperReports" New topic
Author

JasperReports

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I am developing a standalone application using Swing and Hibernate. I need to publish reports as pdfs querying from database. I have to submit my project within 10days with pdf generating facility. I did a bit of googling and found that JasperReports is popular among Java Developers.

So, What all things (or rather technologies, like Ant, etc) i need to know before using JasperReports library?

And is there any other easy to use library for generating pdfs querying from database?


kunal
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41489
    
  53
The http://www.coderanch.com/how-to/java/OtherOpenSourceProjectsFaq page has a number of introductory links regarding JasperReports.


Ping & DNS - my free Android networking tools app
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks For your reply Ulf Dittmer
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Had a look to the url given.

But, still i am confused, as which one will be easy to use for my requirement. (I have to submit my project within 10 Days, so will have to look to some easy to implement technology)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41489
    
  53
There are lots of ways to create PDFs: programmatically via iText, from XML via FOP, using JasperReports, or from CSS-styled HTML via FlyingSaucer. Which is one is easiest to get started with depends on the requirements, about which we know just about nothing, as well as your pre-existing skillset.
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
My requirement is simple pdf file, with tables having data
Panagiotis Kalogeropoulos
Rancher

Joined: May 27, 2011
Posts: 99

You can easily create JasperReports using iReport, (you can download it here). It is a simple drag and drop job, where you can easily design how and what you want to show in your reports (you also need to specify a database from where to get the data). This will generate a .jasper file, which you can use in your java code to create and read pdf files. By doing that, you will need to write only a few lines of code (you will use mainly the JasperRunManager class to write your pdf, found in net.sf.jasperreports.engine package). In the background of course it uses iText, but it takes from you all the burden of writing programmatically the design of your reports (which trust me, it can cause big headaches ).
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Thanks for your reply Panagiotis Kalogeropoulos.

Panagiotis Kalogeropoulos
Rancher

Joined: May 27, 2011
Posts: 99

No problem. For any difficulties that you may find, don't hesitate to ask!
Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Okay Panagiotis Kalogeropoulos. Work on Reporting module starts day after tomorrow. Will surely post difficulties.

Thanks once again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JasperReports