Java Reference
In-Depth Information
<reportElement x="420" y="0" width="69" height="24"/>
<text>
<![CDATA[Engine: ]]>
</text>
</staticText>
</band>
</pageHeader>
<detail>
<band height="30">
<textField>
<reportElement x="0" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{COLUMN_0}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{COLUMN_1}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="280" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{COLUMN_2}]]>
</textFieldExpression>
</textField>
<textField>
<reportElement x="420" y="0" width="69" height="24"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{COLUMN_3}]]>
</textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
Since we changed the report name, we need to change a single line in the previous
example to make it work with this report template.
jasperPrint = JasperFillManager.fillReport( "reports/ AircraftReport.
jasper ", new HashMap(), new JRTableModelDataSource(tableModel));
 
Search WWH ::




Custom Search