Directory Subreport

0

I'm having problems locating the subreport, when I was using the local project it worked perfectly, but now that I've gone to the server it's not locating the subreport. I'm trying to use it like this:

<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
    <defaultValueExpression><![CDATA[""]]></defaultValueExpression>
</parameter>

The subreport is in the same folder as the main report, how do I get it to fetch in the same folder?

    
asked by anonymous 18.07.2016 / 23:47

1 answer

0

In your report, select the subreport, and then go to Properties. In the "Subreport Properties" section, check the "Subreport Expression" attribute.

If you have "P {SUBREPORT_DIR} + yourReport.jasper" you should remove the SUBREPORT_DIR parameter, leaving only "YourReport.jasper".

    
21.07.2016 / 16:54