Reputation: 73
Am using JasperReports
with Struts2
to generate a pdf of comparision report. Am doing printOrder="Horizontal"
to show comparision column wise.
In 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>
But isStretchWithOverflow not working here? texts are still overlapping. is it because printOeder is set to Horizontal?
Upvotes: 0
Views: 1749
Reputation: 8986
When printOrder
is set to Horizontal
, text fields will not stretch. This is because JasperReports strives to align each record across the columns in a report, and allowing them to stretch could cause subsequent data to be misaligned.
Upvotes: 3