filmov
tv
New textField stretch feature in JasperReports Library 7.5.0 via jrxml textAdjust attribute
Показать описание
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:
===
===
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:
===