This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Jasper Reports  with hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper Reports  with hibernate " Watch "Jasper Reports  with hibernate " New topic

Jasper Reports with hibernate

Gajanan Late

Joined: Feb 20, 2006
Posts: 5
I am using jasper report with hibernate. From hibernate i get List object which i pass to JRBeanCollectionDataSource object and fill the report.
JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(reportdata);
JasperPrint print=JasperFillManager.fillReport(report,params,ds);

But when the report is generated it shows only first record. my arraylist contains more than one objects(DTOs).Still report shows one record only!
Can you help me?

Thanks & Regards,
Md. Atif Rasheed

Joined: Aug 23, 2007
Posts: 2
Hi Gajajnan,

I am also working on the same kind of application(spring+hibernate using jasper reports). Can you please post the xml files(jrxml) and the source code. I am not able to understand how to get the List in to a formatted report(html or csv format).

Do we need to generate the jrxml file dynamically? This is the first time i am working on jasper reports.

Decent Dude.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

"decent dude", please check your private messages for an important message from me.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]

Joined: Sep 08, 2008
Posts: 2
hi i would require some help to know abt jasper reports could you send me a simple example of producing a report using spring and hibernate would appreciate for the response
jQuery in Action, 2nd edition
subject: Jasper Reports with hibernate
Similar Threads
passing collection as datasource to jasper report.
Struts and jasper report
Problem in passing JRBeanCollectionDataSource as parameter to jasperreport
Jasper reports error in weblogic 8.1
Jasper Reports for RTF format and single object