File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Java Reports? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Reports?" Watch "Java Reports?" New topic
Author

Java Reports?

Lance Gray
Greenhorn

Joined: Dec 06, 2011
Posts: 20
Is there a simple way to create reports in Java?

What I want to do is to get a number of strings in an ArrayList of objects and then put them on a printable report. Also, i want to put values from a comma-separated file to the printable report.
I've found this JavaDoc but, based from what I've understood, it's not possible to design the report using this. (Correct me if I'm wrong)

So basically, I am looking for a simple report producing class/library that I only have to import on my project (no further installations and similar things) or at least a library that requires little time to study/be familiarized with.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14266
    
  21

JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Lance Gray
Greenhorn

Joined: Dec 06, 2011
Posts: 20
I've looked around myself and also found JasperReports. However, I can't seem to find a tutorial or a documentation regarding on using it and importing it on my project.
Riaan Nel
Ranch Hand

Joined: Apr 23, 2009
Posts: 160

Jesper de Jong wrote:JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.

I can vouch for it. It's pretty powerful, and easy to use once you get the hang of it.

@OP
You can find a guide here; JasperReports Ultimate Guide


"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." - George Bernard Shaw
Lance Gray
Greenhorn

Joined: Dec 06, 2011
Posts: 20
Riaan Nel wrote:
Jesper de Jong wrote:JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.

I can vouch for it. It's pretty powerful, and easy to use once you get the hang of it.

@OP
You can find a guide here; JasperReports Ultimate Guide

Thank you very much for the link, I really appreciate it.

Another question. What should I download in order to put JasperReports on my project? I downloaded the ZIP and JAR files from sourceforge, just in case. When I try to open the contents of the ZIP file, it looks for an ANT build tool. When I open the JAR file, it says it can't open/read the manifest file. Am I doing things wrong?
Riaan Nel
Ranch Hand

Joined: Apr 23, 2009
Posts: 160

Lance Gray wrote:
Riaan Nel wrote:
Jesper de Jong wrote:JasperReports is a well-known Java reporting library, but I've not used it myself, so I can't tell you any details about it.

I can vouch for it. It's pretty powerful, and easy to use once you get the hang of it.

@OP
You can find a guide here; JasperReports Ultimate Guide

Thank you very much for the link, I really appreciate it.

Another question. What should I download in order to put JasperReports on my project? I downloaded the ZIP and JAR files from sourceforge, just in case. When I try to open the contents of the ZIP file, it looks for an ANT build tool. When I open the JAR file, it says it can't open/read the manifest file. Am I doing things wrong?

Hi Lance

If you downloaded the JasperReports zip file, there should be a lib folder with a bunch of JAR files inside it. If memory serves me right, you have to copy those files to your JDK's lib folder. You'll also need to include the jasperreports-[version].jar file from the dist folder (in the zip file) as a library in your application. After you've done those two things, you should be good to go.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Reports?