andre.wolff Posted August 26, 2015 Share Posted August 26, 2015 Hello,I have deployed a report ("Mainreport") with subreports on Jasper Server 6. It works. Now I have another report ("SecondReport") which has Mainreport as subreport. I don't want to deploy Mainreport a second time with SecondReport. Instead I want SecondReport to find Mainreport at its original location. I tried several variants of repo:pathtoreportMainreport.jrxml and repo:pattoreportMainreport_filesMainreport.jrxml. It doesn't work, I always get "Repository file resource ... could not be loaded". Who can help? Link to comment Share on other sites More sharing options...
Tom C Posted September 1, 2015 Share Posted September 1, 2015 You cannot reference a deployed report unit in your report design as a sub report. A deployed report unit is a JRS repository resource which consists of report design (JRXML) and report resources and controls. The subreport is represented by an external Jasper file reflecting the report design JRXML, not the deployed JRS resource unit.If you want to share the same report design for different deployed report units, you will need to first deploy the report design as a JRXML file resource into JRS, then reference this resource as the main or subreport JRXML design templates for each report unit deployment. 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