arnaudsimon091 Posted November 18, 2019 Share Posted November 18, 2019 Hello everyone,I would like to know if it was possible to put a report of the JasperReports server inside a subreport (so I could merge several reports) .Thanks for your help Link to comment Share on other sites More sharing options...
pawankumar.singh Posted November 19, 2019 Share Posted November 19, 2019 yes you can.you can use subreport element in japser studio to achive your requirement.ThanksPawan Link to comment Share on other sites More sharing options...
arnaudsimon091 Posted November 19, 2019 Author Share Posted November 19, 2019 Hello pawan,When I use the subreport element inside japsersoft studio, I can't select any report from the jasperserver : -> -> Are you sure that I can use a report from the jasperserver inside a subreport ?Best regards,Arnaud Link to comment Share on other sites More sharing options...
pawankumar.singh Posted November 20, 2019 Share Posted November 20, 2019 Pardon Man,You use tag of jasper studio thats why i was thinking you are using jasper studio. At jasper levevl i have to check.BTW why are you using jasper server to make Reports instead of jasper studio?Thanks Link to comment Share on other sites More sharing options...
arnaudsimon091 Posted November 20, 2019 Author Share Posted November 20, 2019 Yeah you're right I should have used the jaspersoft studio and the jasperserver tag.I wanted to use jasper server to make reports because I have a report which is often modified by users on the server and I want to display it (the latest version) in another report, I don't know if it's the right way to do this.Thanks for your help. Link to comment Share on other sites More sharing options...
Solution arnaudsimon091 Posted November 20, 2019 Author Solution Share Posted November 20, 2019 I finally found what I should do in order to have a report of the jasperserver inside my subreport.Let's say I have a "master report" in jasperserver and a ''slave report" = subreport which contains master report.To put I had used this expression in the subreport "repo:/path_to_report/report_files/main_jrxml" and published it.Then everything worked (subreport contained a jasperserver report).But I had another problem, when I updated my "master report", I saw that my "slave report" weren't updated.So I opened the "main.jrxml" file of the "slave report" and I saw that instead of a subreport, it contained only a static text.So I modified my "slave report" until I had a subreport with the expression "repo:/path_to_report/report_files/main_jrxml" -> Now when I modified my "master report", my "slave report" is updated.PS : With this method, external resources like "input controls" or "images" in the "master report" can't be automatically updated in to the "slave report" Link to comment Share on other sites More sharing options...
jotarokujo091 Posted November 20, 2019 Share Posted November 20, 2019 Thanks, It solved my problem 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