This video goes over the functionality of the new textAdjust attribute, which was introduced in JasperReports Library 7.5.0 to replace the deprecated isStretchWithOverflow.
===
In JasperReports Library 7.5.0 the isStretchWithOverflow attribute has been deprecated, and replaced with the textAdjust attribute. These are helpful when your textField's dimensions might be too small for the amount of data which might come from your datasource. The textAdjust attribute includes the original two behaviors and adds a third.
- CutText: involves is the default behavior and like the previous default behavior it involves truncation.
- StretchHeight: replicates the previous behavior you got from setting isStretchWithOverflow to true
- ScaleFont: is new, The font size of the text is scaled down so that the entire content fits
the text field element size.
Reference:
http://jasperreports.sourceforge.net/schema.reference.html#textField
===
Recommended Comments
There are no comments to display.
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