ganny.perikala Posted May 19, 2008 Share Posted May 19, 2008 hai everbody, hey here problem for me while integrating the subreport to master report. my master Report requires a databse connection.whereas my subreport does not require any sort of database connection.ijust consists of raw data.if i integrate them and excute the i am geeting master report content but i am not getting the subreport content. so anybody of plz give me immediate reply. thanks in advance. Link to comment Share on other sites More sharing options...
karthikij Posted May 19, 2008 Share Posted May 19, 2008 copy your subreport jasper file from ireport folder and place it in the directory of your master report Link to comment Share on other sites More sharing options...
CaptnTony Posted May 20, 2008 Share Posted May 20, 2008 I've found that on reports (especially on sub-master reports) that every report the system must be attached to some data source. Since I'm going after data in a SQL Server database on all my subreports, I just do a SELECT 1 as temp as the data source for the report 'with no data'. Hope that helps. Don't know why I have to do it, but that's the way I found to work around it. Link to comment Share on other sites More sharing options...
lshannon Posted May 20, 2008 Share Posted May 20, 2008 In your main report you can make the subreport have a datasource expression and then make the expression itself this: Code:new JREmptyDataSource(1) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now