Kannan_S Posted October 16, 2006 Share Posted October 16, 2006 There is an option to increase or decrease the height of the fields.can it be done with the column width.i.e.,i have a column name and its data in an aligned mannersay for example Name--------AntonyKannanJohn AbrahamVijayMark Twain Abraham Vincent i have got borders for column name in static text and data in fields. Based upon the width of the data the width of the column should either increase or decreaseand vice versa. if only the mark twain ... name is to be displayed the widht of the field should be similar to the width of the text field. if the data is vijay the width should be automatically reduced . please help Link to comment Share on other sites More sharing options...
arbitary Posted October 17, 2006 Share Posted October 17, 2006 I don't think there is an option to dynamically alter the width. Infact, if your text is too long for the width, it gets truncated. What I do is set the 'Stretch with overflow' preprty to true. That way, if it is a long text, it wraps. Link to comment Share on other sites More sharing options...
Kannan_S Posted October 18, 2006 Author Share Posted October 18, 2006 thanks for the reply arbitaryi tried that and ofcourse its working fine. but it really looks awkward when that field size alone gets increased. the other fields of that row remain same.i tired even stretch_with_relative_to_tallest_object (i suppose i am right). but its looking bad. particulary in the new page. i came to know that it is an disadvantage of jasper reports. no other way to sort it out? Link to comment Share on other sites More sharing options...
arbitary Posted October 19, 2006 Share Posted October 19, 2006 The property that I modify is different. You select the column that should stretch, then right-click. This brings up the 'Properties' option. Click on it. There are multiple tabs at the top - go to the 'TextField' tab and check 'Stretch with overflow'. I have just 1 field in my report that has enough data to wrap and the result is pretty decent looking. It increases the row height just enough to accomodate the data. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted October 30, 2006 Share Posted October 30, 2006 Hi, Kannan_S, maybe you could give more details about the report "looking bad". Something like a screen shot would be good. Thank you,Teodor 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