rajajasper Posted May 27, 2010 Share Posted May 27, 2010 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,RajaPost Edited by rajajasper at 05/27/2010 18:51 Link to comment Share on other sites More sharing options...
slow Posted May 31, 2010 Share Posted May 31, 2010 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/CowgirlPost Edited by slow at 05/31/2010 10:14 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