当我将报告导出到 Excel 时,如果要显示多行,我的单元格不会显示整个文本;它只是削减了一部分,我需要手动扩展行以查看其中的所有数据
我使用以下格式:
<band height="21">
<staticText>
<reportElement style="pageHeader" mode="Opaque" x="0" y="6" width="88" height="15"/>
<textElement textAlignment="Left">
<font fontName="Cambria" size="10"/>
</textElement>
<text><![CDATA[First Name]]></text>
</staticText>
</band>
<band height="30" splitType="Prevent">
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="0" width="88" height="25"/>
<textElement textAlignment="Left">
<font fontName="Cambria" size="10"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{firstName}]]></textFieldExpression>
</textField>
</band>
我应该设置一个 xls 属性吗?