trupti.kamathankar Posted March 3, 2020 Share Posted March 3, 2020 Hi, I want to fit text in same size of textfield. Suppose, if text length is greater than length of textfield then automatically text size should reduce to display whole text in same textfield. Kindly help.Thanks. Link to comment Share on other sites More sharing options...
Solution I am Leo Posted March 3, 2020 Solution Share Posted March 3, 2020 <textField textAdjust="ScaleFont"> <reportElement x="0" y="0" width="1520" height="15" uuid="6cb61704-2f0a-4b05-b714-f0219175f001"> <property name="com.jaspersoft.studio.element.name" value="content"/> </reportElement> <box topPadding="35" leftPadding="35" bottomPadding="35" rightPadding="35"/> <textFieldExpression><![CDATA[$F{point4}]]></textFieldExpression></textField>[/code]Just use textAdjust="ScaleFont" in your text field. Link to comment Share on other sites More sharing options...
trupti.kamathankar Posted March 4, 2020 Author Share Posted March 4, 2020 Thank you very much for your quick support. But, I am getting error after addition of property 'textAdjust' as, "Attribute 'textAdjust' is not allowed to appear in element 'textField'".Error ImageWill you please help me ? I am using JasperSoft version "6.10.0"Waiting for your reply. Link to comment Share on other sites More sharing options...
trupti.kamathankar Posted March 5, 2020 Author Share Posted March 5, 2020 Thank you very much. That is what I am actually looking for. 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