2002 JI Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: Kjetil T. - kjetolle Wrapping/line break 2003-11-03 00:02 Hi there. How can I make my JasperReport wrap text or force a line break? I have a quite regular textfield like <textField isBlankWhenNull="true"> <reportElement x="0" y="40" width="600" height="12" > </reportElement> <textElement textAlignment="Left" > <font fontName="Sans-serif" size="8" isBold="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{Comment}</textFieldExpression> </textField> The page width is 595, so I've tried setting the field width to 600. The field is populated using a JRBeanCollectionDataSource, and it's collected from a database table, data type String, size 1000. Thank you for your answer! By: Tobias Karlsson - tullabeah RE: Wrapping/line break 2003-11-10 07:31 Have you tried the isStretchWithOverflow="true" in you textField tag? eg. <textField isBlankWhenNull="true" isStretchWithOverflow="true"> /T 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