[#14681] - Subreport compilation fails then opening preview

Category:
Bug report
Priority:
Normal
Status:
Feedback Requested
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Hello,

we are using JasperSoft Studio Community Edition in version 6.20.x. We use subreports and refer to them by filename. When opening the preview of the master report the subreports should compiled automatically like older version do.

The subreports are located in a subdirectory. We have defined a SUBREPORT_DIR in the main report and pass the SUBREPORT_DIR as parameter to the subreport.
In the subreportExpression uses this directory as prefix:
$P{SUBREPORT_DIR} + "subreport.jasper"

When opening the preview of the main report we get this error :

net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Resource not found at: subreport.jasper.

Could you please repair this auto compilation?

Kind Regards
Ulf

ulf.klaeuschen's picture
Joined: Jun 21 2023 - 5:03am
Last seen: 3 months 7 hours ago

1 Comment:

#1
  • Status:New» Feedback Requested

Hi,
can you please specify the following details:
- exact version used
- operating system (i.e Windows, Linux, Mac OS X)

I don't understand if the scenario you mention was working before. If yes please provide a couple of sample reports (i.e master and subreport) working in previous version XYZ (i.e 6.19.0) and no longer working in a more recent 6.20.5 for example.

Regards,
Massimo.

Feedback
randomness