【发布时间】:2013-03-16 11:37:39
【问题描述】:
我正在使用 JasperReports 和 Struts2 来生成比较报告的 pdf。我正在做printOrder="Horizontal" 以明智地显示比较列。
在detail-
<detail>
<band height="1200">
<textField isStretchWithOverflow="true">
<reportElement style="Serif_Normal" x="0" y="900" width="369" height="20" positionType="Float"/>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{PROVFORDRAININGSEDIMENTS}]]>
</textFieldExpression>
</textField>
</band>
</detail>
但 isStretchWithOverflow 在这里不起作用吗?文本仍然重叠。是因为printOeder设置为Horizontal?
【问题讨论】:
-
我这个问题here 会帮助你。差不多一年前我遇到了同样的问题。
-
@Rachacha .. 尝试了这 4 个选项,但没有运气。
标签: java jasper-reports