Jump to content

Font size change by field length


rajajasper

Recommended Posts

Hi Everybody,

  I have a issue that I want to change font size by a particular string field length. This field varies in length if the field length is more than 50 characters I want to use smaller font dynamically else want to bigger font.This how can I achieve while generating pdf report. If anybody face this problem earlier or have some suggestions please post in this forum. I am blocked because of this.Appreciate for your help.

 

Thanks,

Raja



Post Edited by rajajasper at 05/27/2010 18:51
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It seems that current versions of ireport/jasper report don't support creation of dynamic definition with parameters...

but you can use styles...

create your text field and then create a style with two condition... the first applied when the field you print has less than 50 char, the second form more than 50 chars...

each style can use different font size...

in this case you have only two condition so it's a good solution.

read this...
http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=72656&topid=72679#72679

_________________________________________

if it works... give me KARMA points please!    : ) 
_________________________________________

listening: Underworld - Rez/Cowgirl



Post Edited by slow at 05/31/2010 10:14
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...