Alex Rivera | Logout

What is the best approach to use JasperReports?

Asked 2010-07-28T14:39:51.273
11

Here we are talking about three main products: JasperReports: which is just a library to generate reports and fill it iReport: which is GUI tool to develop templates used by the above library JasperServer: which is full application with web interface for managing reports with users permissions and other features,

documentation is really not that good, i want to use the best of the above products to integrate JasperReports with my application (Spring/Hibernate), so please advice what is the best approach to do this,

1- design reports using iReport using embedded sql generation, and make it as a separate project from mine, I tried to use Hibernate or Spring within iReport but also I faced a lot of problems and no clear documentation for this part

2- attach it with my project, to use same Hibernate configuration, already created entities

3- try to use JasperServer which seems to be complicated, and then expose reports as webservices

or any other better, guaranteed approach, i know it's dependant on the way my project is dealing, but i've shortage in time, so it depends on the approach having better documentations or tutorials.

Edit
Report

2 Answers

1

I've started using JasperServer-pro recently and tbh I quite like it. As far as I know there seem to be plenty of options in the way of integrating it with existing apps :-

1 -Deploy as standalone server, and use the WebService API to call into to generate and return your reports (these have to be predefined, either through iReport or JasperServer's own AdHoc Report Editor.

2- Deploy as standalone server, and do URL calls through a kicked-off browser to pull up reports (again predefined)

3 - (Pro-only) - Download the WAR BIN installer and rebrand it.

4 - Download the source code for JasperServer and build it from ground up

5 - Download the source code / JasperReports jars and borrow the parts you want to use in your source code.

answered 2010-08-06T11:02:45.593
0

For JasperReports can you buy documentation. You'll get a book and sample code that can help a lot. I just looked at the website (it's been some time ago I worked with JasperRepors, currently no reporting to do), they have a professional design application as well now: http://www.jaspersoft.com/jasperreports-professional.

answered 2010-07-29T07:16:43.630

Your Answer