File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes problem in jasper report and subreport Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "problem in jasper report and subreport" Watch "problem in jasper report and subreport" New topic
Author

problem in jasper report and subreport

singh Mari
Greenhorn

Joined: Mar 25, 2009
Posts: 6
i am using jasper report and subreport for print purposes. when subreport are using the following error messages came.

" The supplied java.sql.connectionobject is null"
Anurag Blore
Ranch Hand

Joined: Jan 15, 2003
Posts: 74
Are you trying to pass the connection Object to the subreport?

Ideally if you are using subreports in Jasper, you should get all your data in a collection and then pass all the data to main report which again can pass the data to sub report.

This is the way I have done the Jasper report.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I am sorry to say, but how is this problem related to JSF?


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Anurag Blore
Ranch Hand

Joined: Jan 15, 2003
Posts: 74
This problem is not related to J?SF it related to Japer Rports
Jasper Reports
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Sure, but he posted it in the JSF forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in jasper report and subreport
 
Similar Threads
[Java & Jasper Report] Simple and very detailed question about subreport "null" field
how to send Jasper I report field in subreport
Problem in call jasper subreport in java
Subreports in Web Application.
How to call 3 jasper report subreport in java code