vspn Posted July 22, 2014 Share Posted July 22, 2014 Hi,I need to print a message in report which should be of maximum 125 characters. Which property should i set for the same? Please help.. UrgentThanks Link to comment Share on other sites More sharing options...
Tom C Posted July 23, 2014 Share Posted July 23, 2014 JR report does not have a report field property setting to limit number of characters in the field - you can only set the field dimension in pixel unit. You will need to create a scriptlet (Java method) to count and truncate character string in the message and call this method from your report field to display the message in the report layout. Link to comment Share on other sites More sharing options...
Sakura Hana Posted July 24, 2014 Share Posted July 24, 2014 Probably, you can follow these steps here:Use java code for define the length of display text;After create java code, you can convert it to jar file;Import to iReport Designer; andFinally use it as expression in "When Print Expression".Hope it help. Link to comment Share on other sites More sharing options...
vspn Posted July 28, 2014 Author Share Posted July 28, 2014 Is there a way to do it in ireport designer instead of java code as we are here not doing build in Java and am not much comfortable in Java development 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