questions about subreport

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email with questions or issues requiring TIBCO review or response.

I have  questions about subreports

When I publish the report, its subreports are also published.

Where can I see them in jasper server? I see only main report (I'm in the community edition for jasper server and jasperstudio)

Can I publish only subreport? wuthout his mainreport ancd other subreports

can refer to a subreport on the server with an absolute path c: \ .... \ subreport.jasper (in this case may i

replace only the subreport)

thanks in advance


erika.chinchio's picture
Joined: Feb 25 2021 - 2:06am
Last seen: 2 days 20 hours ago

2 Answers:

First of all, a subreport is also a report, this means that everything you do with a report you can do with a subreport.

A subreport is a resource of the main report, this means that on the server, it cannot be treated as a report but as a resource, not to be confused with what was mentioned at the beginning, subreports are also reports but when they are treated individually, when they are embedded within a report so they become content resources.

JasperReports Server does not work with jasper files but with jrxml, when the path is absolute like the one mentioned in your example, these are uploaded as jasper (from Jaspersoft Studio), it is not ideal, when the path is relative and points to the server it is mandatory to use the jrxml.

You can see the subreports as resources of a report in JasperReports Server by selecting the report that contains the subreport and clicking edit, then select controls and resources and all the resources used by the report, including the subreports, will appear there.

You can upload the subreports to the server individually, but they should be as jrxml, this is ideal, since you can then point them to one or several reports, this is useful to avoid uploading the same resource to the server.

I hope I've helped.

Saludos :D

erikmarbad's picture
Joined: Feb 2 2022 - 5:31pm
Last seen: 6 hours 32 min ago


thanks Now I understand. you were very kind and explained very well


erika.chinchio's picture
Joined: Feb 25 2021 - 2:06am
Last seen: 2 days 20 hours ago