cool3690 Posted October 2, 2018 Share Posted October 2, 2018 I hope my word space can large if santance is shortand have small word space when the santance is longthis is my code$F{youad}.length()<10 ? <paragraph lineSpacing="Proportional" lineSpacingSize="1.4"/> :<paragraph lineSpacing="Proportional" lineSpacingSize="0.4"/> [/code]why it can not runhelp methanks Link to comment Share on other sites More sharing options...
dszeto Posted October 2, 2018 Share Posted October 2, 2018 Is this code being run against a text control? While I don't believe that is going work, perhaps what you can do is set the 'print when' expression of this control to print it if the condition is met, and if not, print another text control that has the dimensions you want based on the same test conditionexcept that you'd test for the opposite case. Link to comment Share on other sites More sharing options...
hozawa Posted October 7, 2018 Share Posted October 7, 2018 FYI, linespacing is spacing between "lines" and not between characters or words.JasperReports also does not support dynamic attribute changes. You'll need to pre-define different text areas with different properties and select which one to print out instead. 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