在JasperReports中Excel格式不正确

当我将报告导出到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属性?

我解决了这个问题,设置行距在文本字段属性菜单中加倍。

看起来不同,但显示全文。