Jasper sub report的记录数问题

Jasper master report
<band height="25">
<subreport>
<reportElement x="0" y="0" width="802" height="25"/>
<subreportParameter name="caseID">
<subreportParameterExpression><![CDATA[$P{caseID}]]> </subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]> </connectionExpression>
<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "TEMIP1001_2.jasper"]]></subreportExpression>
</subreport>
</band>

 

     Jasper sub report:

<textField evaluationTime="Report">
	<reportElement x="0" y="20" width="802" height="20"/>
		<textElement textAlignment="Left">
			<font size="10" isBold="false"/>
		</textElement>
	<textFieldExpression class="java.lang.String"><![CDATA[($V{REPORT_COUNT}==0?"No records found.":"")]]></textFieldExpression>
</textField>
   

你可能感兴趣的:(Jasper)