Hello there!!
I'm having some truncating problem using a TextField in a subReport.
I have a subReport which is divided in 3 details bands.
Each detail band has a Static Text above a Text Field.
The problem occurs in the last detail band, on the TextField. The text in it is dynamic and varies from about 10-20 lines.
The problem is that this Text Field always truncate the text at the same point. I've tried to enlarge this TextField just for testing purposes and it still doesnt make any difference. StreckWithOverflow is true also, and the band stretch option is set to 'RelativeToTallestObject'.
Strangely, when I set the TextField in the first detail band to get the content of the last one, the whole text is showed up, but unfortunatelly I need this text in the last band's TextField.
Here's my XML:
<?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Mod. Padrao de Contratos - Garantias" pageWidth="551" pageHeight="71" columnWidth="551" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" isSummaryWithPageHeaderAndFooter="true" isFloatColumnFooter="true"> <property name="ireport.zoom" value="1.5026296018031577"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <field name="tipoGarantia" class="java.lang.String"/> <field name="qualificacao" class="java.lang.String"/> <field name="condicoes" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <detail> <band height="46" splitType="Stretch"> <frame> <reportElement x="10" y="0" width="531" height="41"/> <box> <topPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="1" y="19" width="530" height="20"/> <box leftPadding="2" rightPadding="3"> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Times New Roman" size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{tipoGarantia}]]></textFieldExpression> </textField> <staticText> <reportElement x="2" y="1" width="142" height="18"/> <textElement verticalAlignment="Middle"> <font fontName="Times New Roman" size="12"/> </textElement> <text><![CDATA[ Tipo da Garantia ]]></text> </staticText> </frame> </band> <band height="46" splitType="Stretch"> <frame> <reportElement x="10" y="0" width="531" height="41"/> <box> <topPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="1" y="20" width="530" height="20"/> <box leftPadding="2" rightPadding="3"> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Times New Roman" size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{qualificacao}]]></textFieldExpression> </textField> <staticText> <reportElement x="2" y="1" width="142" height="18"/> <textElement verticalAlignment="Middle"> <font fontName="Times New Roman" size="12"/> </textElement> <text><![CDATA[ Qualificação da Garantia]]></text> </staticText> </frame> </band> <band height="41" splitType="Stretch"> <frame> <reportElement stretchType="RelativeToTallestObject" x="10" y="0" width="531" height="41"/> <box> <topPen lineWidth="0.5"/> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <staticText> <reportElement x="2" y="1" width="142" height="18"/> <textElement verticalAlignment="Middle"> <font fontName="Times New Roman" size="12"/> </textElement> <text><![CDATA[Condições e Obrigações ]]></text> </staticText> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement isPrintRepeatedValues="false" x="1" y="20" width="530" height="20"/> <box leftPadding="2" rightPadding="3"> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Times New Roman" size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{condicoes}]]></textFieldExpression> </textField> </frame> </band> </detail> </jasperReport>
Thanks very much in advance!