martyrrytham Posted May 3, 2011 Share Posted May 3, 2011 All,I have a standard report, in this report I have a detail section, with 5 textFields only. Each field has a reportElement with Attribut "stretchType" = "RelativeToTallestObject". Each textField has attribute "isStretchWithOverflow" = "true".If I have this in a field:"Operating Cash-Tampa-Bank of America"The printed report after fill process will truncate my data to:"Operating Cash-Tampa-"However, if I have this in a field:"Operating Cash Tampa Wachovia blah blah with some stretch, should go to the next row"The stretchType and Stretch will behave normally and wrap the data to the next row.So it seems that jasper truncates on certain characters, even though stretch and isStretch are set. . . .Does anyone know of a setting or a way around this? I can not alter my data, and I can not simply increase the size of the field.Notice the second column in the picture attachment of part of the printed pdf. . . Any help would be greatly appreciated, thanks, happy printing!!Code: <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="110" y="0" width="175" height="12" stretchType="RelativeToTallestObject" /> <textElement> <font reportFont="Text" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{accountIDNumber} + " - " + $F{accountName}]]></textFieldExpression> </textField> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now