I've done that to and the second report populates with the data.
I first thought there might not be data but i know for a fact that there is.
The thing is i dont use a query on the report to return and populate the fields.
i do all of this within the java servlet and then send it across to the report for it to handle it with the datasource.
All of the examples i have looked out of how they populate 2 or more subreports they write the query within the jasper report. So i'm abit stuck atm trying to figure this out. I'm hoping this can be done the way im doing it.
I'm sure someone must have done it like this before?
Main Topics
Browse All Topics





by: pramodkrjsrPosted on 2009-09-17 at 00:20:40ID: 25353487
Have you tested your secondSubReport separately with the same datasource and paramters.
It may be possible that the db query in secondSubReport returning zero rows