Subreport which contains a JasperReports Server Report

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

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 3 months 2 weeks ago

Thanks, It solved my problem

jotarokujo091 - 3 years 10 months ago

5 Answers:

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"

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 3 months 2 weeks ago

yes you can.

you can use subreport element in japser studio to achive your requirement.

Thanks

Pawan

pawankumar.singh's picture
Joined: Sep 19 2018 - 10:39pm
Last seen: 3 years 9 months ago

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

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 3 months 2 weeks ago

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

pawankumar.singh's picture
Joined: Sep 19 2018 - 10:39pm
Last seen: 3 years 9 months ago

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.

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 3 months 2 weeks ago
Feedback