File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes [SOLVED] JasperReports doesn't display data (just headers) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "[SOLVED] JasperReports doesn Watch "[SOLVED] JasperReports doesn New topic
Author

[SOLVED] JasperReports doesn't display data (just headers)

Roberto Lopez Lopez
Greenhorn

Joined: Jun 16, 2008
Posts: 22
Hi guys,

I'm building a report using JasperReports 1.2.7 and web services (Spring 2.5.6). I compiled successfully a simple report layout using iReport. But now I'm trying to use it with a JRBeanArrayDataSource and nothing but the headers of the columns is displayed. This is part of my form controller method, where I'm supposed to build the report.



Where NewReport and FilesReport are helper classes. The data is correctly loaded into the attributes reports and result.jreport.






I'm not an expert at all using Spring and JasperReports (it's my first report), any tip please???
Roberto Lopez Lopez
Greenhorn

Joined: Jun 16, 2008
Posts: 22
I managed to solve the problem. It was due to using jasperreports v1.2.7 and templates compiled using ireport v3.5.2... first time and last time I get trapped into this trick
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: [SOLVED] JasperReports doesn't display data (just headers)