jandi121 Posted October 12, 2007 Share Posted October 12, 2007 Hi, I've got a little problems with subreports: My xml documentation seems perfect when I'm running it under iReport, but when I'm calling it from my java program, the content of my subreports won't be displayed. Another intresting notice: when I open my main report under iReport, the result is the same like when I open it from my program (the content of the suberport don't be displayed). But when I open the subreport too (under iReport) the document will be good... :) And the xml source of the main report is the same in both of the above cases. Do you have any idea? :) Link to comment Share on other sites More sharing options...
svenn Posted October 16, 2007 Share Posted October 16, 2007 How are you referencing your subreport in the subreport component of your main report? Link to comment Share on other sites More sharing options...
jandi121 Posted October 16, 2007 Author Share Posted October 16, 2007 This is how I'm referencing to one of my subreports: this.getClass().getResourceAsStream($P{SUBREPORT_DIR} + "subject_sheet_subreport0.jasper") This is the value of "Subreport Expression" param. 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