Jasper 보고서의 columnFooter에 textFields를 동적으로 추가하는 방법이 있습니까? 내가 알고하지 않기 때문에 텍스트 필드의 수를JasperReports에서 동적으로 textField 추가
<columnFooter>
<band height="21" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="50" height="21"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA["Example text...."]]></textFieldExpression>
</textField>
</band>
또는
<columnFooter>
<band height="42" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="50" height="21"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA["Example text...."]]></textFieldExpression>
</textField> <textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="50" height="21"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA["More example text...."]]></textFieldExpression>
</textField>
</band>
(또는 추가합니다.
내가 사용해야 할 수도 있습니다 상황이 몇 개가 더 추가 될지, 동적으로 밴드의 크기를 조정해야 함) 나는 dynamicall에 대한 방법을 찾고있다. y Java에서이 작업을 수행하고 jrxml 파일에 하드 코딩 할 필요가 없습니다. 감사합니다
예를 들어 (JasperReports API) [http://jasperreports.sourceforge.net/api/] 또는 [DynamicJasper API] (http://dynamicjasper.com/documentation-examples/api-docs/)를 사용할 수 있습니다 –
첫 번째 링크가 죽은 것처럼 보입니다.이 작업을 수행 할 수있게 해주는 DynamicJasper API에 대해 구체적으로 설명 할 수 있습니까? 아마도 코드 예입니다. – Tyrick