如何创建包含表格数据的报告?
我能够创建一个包含以下详细信息的报告。它将数据排列在类似表格的结构中。
<jasperReport>
.
.
<pageHeader>
<band height="30">
<staticText>
<reportElement x="0" y="0" width="69" height="24" />
<textElement verticalAlignment="Bottom" />
<text><![CDATA[ID: ]]></text>
</staticText>
<staticText>
<reportElement x="140" y="0" width="69" height="24" />
<textElement verticalAlignment="Bottom" />
<text><![CDATA[NAME: ]]></text>
</staticText>
<staticText>
<reportElement x="280" y="0" width="69" height="24" />
<textElement verticalAlignment="Bottom" />
<text><![CDATA[AGE: ]]></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{id}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="0" width="69" height="24" />
<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="280" y="0" width="69" height="24" />
<textFieldExpression class="java.lang.String"><![CDATA[$F{age}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
但是行和列没有边框?我如何在 Jasperreport 4.5 中实现这一点?
谢谢