Jump to content

Restrict text size in iReport


vspn

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

Probably, you can follow these steps here:

  1. Use java code for define the length of display text;
  2. After create java code, you can convert it to jar file;
  3. Import to iReport Designer; and
  4. Finally use it as expression in "When Print Expression".

Hope it help.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...