当我将子报告包含在我的主要报告中时,我做了jasper报告
net.sf.jasperreports.engine.JRException: Resource not found at :D:\Jasper_Report\Newfolder\AddressReport.jasper
但是我的位置已经存在AddressReport.jasper。
<subreport>
<reportElement positionType = "Float" x = "335" y = "25" width = "175" height = "20"/>
<dataSourceExpression>
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource
($F{subReportBeanList})
</dataSourceExpression>
<subreportExpression class = "java.lang.String">
<![CDATA["D:\\Jasper_Report\\Newfolder\\AddressReport.jasper"]]>
</subreportExpression>
</subreport>