bemar Posted June 12, 2007 Share Posted June 12, 2007 Hey, I'm using IReport 1.3.3 and have trouble including a subreport. I created a simple report that i want to include as a subreport in the page header of another report. The problem is, that as soon as i add the subreport the master report is empty once i run it.I checked all paths and parameters but can't get it to work.The subreport is to use his own data source. Link to comment Share on other sites More sharing options...
Case1182 Posted June 13, 2007 Share Posted June 13, 2007 that is ur problem right there, first thing is subreport has to have same datasource as main report, thats why it is called a sub-report, make sure your subreports parameter map is the value of the systems generated parameter map called "parameter map", if they do not share the same datasource it will not work, you can have your own queries and different tables but the datasource has to be the same. If it is coming up blanks means you are pulling null data. Link to comment Share on other sites More sharing options...
svenn Posted June 13, 2007 Share Posted June 13, 2007 This is not true, a subreport can have a seporate datasource from the main report. bemar think that it might have to do with putting a subreport in the page headers. Try putting your subreport in another section of the report and seeing if you still get no data. Link to comment Share on other sites More sharing options...
Case1182 Posted June 13, 2007 Share Posted June 13, 2007 subreports can only function off the same data source, aka Database, you can use whatever view, tables, subdatasets and columns u want, but you can not use a seperate database, if you can get a subreport to us a completey different database I would like to see it. Link to comment Share on other sites More sharing options...
bemar Posted June 13, 2007 Author Share Posted June 13, 2007 My mistake, the report in fact has the same datasource but its own query. So that shouldn't be a problem at all.What confuses me is that the master report is working fine until i add the subreport. As soon as i do that and try to run the master report from IReport there is no output at all. Link to comment Share on other sites More sharing options...
Case1182 Posted June 13, 2007 Share Posted June 13, 2007 If you are getting no output, not even a blank page, then ur subreport is looping, parameters are not being passed correctly, or output is too large 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