Jump to content
We've recently updated our Privacy Statement, available here ×

Access already deployed mainreport as subreport


andre.wolff

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...