Subreport Directory

Asked

Viewed 76 times

0

I’m having trouble locating the subreport when I was using the local project it worked perfectly, but now that I’ve moved 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, as I do for it to search in the same folder?

1 answer

0

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

If you have "P{SUBREPORT_DIR} + yourRelatory.Jasper" you must remove the SUBREPORT_DIR parameter, leaving only "yourRelatory.Jasper".

  • Dude, I tested this way before even posting here and it didn’t work no. Oq worked for me was to put the server path in the directory

Browser other questions tagged

You are not signed in. Login or sign up in order to post.