1
0
-1

Hello team. I have a problem, I need to implement, in Jasper, a report that contains subreports. In general, Jasper calls these subreports in the following way:

<subreport>
<reportElement x="414" y="0" width="200" height="55" uuid="5a58ca6a-639c-4a3f-a034-805c1b699d5f"/>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA["Blank_A4_3.jasper"]]></subreportExpression>
</subreport>

However, where should I then put the Blank_A4_3.jasper file on the server in order to implement this requirement? Should another type of procedure be done for this implementation?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, am not very familiar with JasperReports but according to https://stackoverflow.com/questions/3360831/relative-path-for-the-subreport/3387463#3387463, you can't use relative paths. Perhaps you could try to put the file in a path on your server and try to use an absolute path to see if it works.

        CommentAdd your comment...