rsharma Posted August 28, 2007 Share Posted August 28, 2007 Facing an issue with dynamic textfield resize. To accomodate a large string we have to make the text box large enough so that data does not get truncated but when the datais small, it takes up entire text box area and creates blank spaces around.Please let me know what am I missing, as there should be a way around it given such a common requirement. Link to comment Share on other sites More sharing options...
svenn Posted August 28, 2007 Share Posted August 28, 2007 You can set the textfield to a reasonable size then set the property "Stretch with overflow". The field will then expand vertical so that it will contain all of your text. Link to comment Share on other sites More sharing options...
yurish Posted August 29, 2007 Share Posted August 29, 2007 can i do it somehow horizontal? I mean to have not such text:------------simple text|to display |vertical |------------ but ----------------------------------simple text to display horizontal|---------------------------------- Link to comment Share on other sites More sharing options...
goku2 Posted January 21, 2008 Share Posted January 21, 2008 Hi yurish! I have the same problem. Is there a way to specify the text field width in a percentage unit? This could solve the expantion problem, but i don't know if this is posible. Regards Link to comment Share on other sites More sharing options...
svenn Posted January 22, 2008 Share Posted January 22, 2008 No you cannot dynamically change the horizontal spacing. The only way you could do it is manually build the whole report. You could then calculate how big you wanted the text field to be. It is one of the limitations of iReports. Link to comment Share on other sites More sharing options...
venkat562 Posted May 31, 2011 Share Posted May 31, 2011 Hi,You can do one thing to resize dynamic field. open text field expression write as following "Include content"+ ${parameterName}.Post Edited by venkat562 at 05/31/2011 15:11 Link to comment Share on other sites More sharing options...
smileyang Posted June 17, 2011 Share Posted June 17, 2011 Hi,Thanks your idea, but what a pity, it does not work. I don't know whether I did't understand what your meaning is.Thanks. Link to comment Share on other sites More sharing options...
smileyang Posted June 17, 2011 Share Posted June 17, 2011 venkat562Wrote: Hi, You can do one thing to resize dynamic field. open text field expression write as following "Include content"+ ${parameterName}. Post Edited by venkat562 at 05/31/2011 15:11 Hi,Thanks your idea, but what a pity, it does not work. I don't know whether I did't understand what your meaning is.Thanks. Link to comment Share on other sites More sharing options...
venkat562 Posted July 5, 2011 Share Posted July 5, 2011 @smileyang:First tell me what do you need and what you tried out ? Link to comment Share on other sites More sharing options...
prethesh Posted August 10, 2012 Share Posted August 10, 2012 Suppose we have text as "Print this whole sentence in horizontal line". We have text box with stretch overflow option "yes" i.e checked.If we print it comes like---------------print this wholesentence inhorizontal line-----------------------But we have to print in single line like-------------------------------------------------------print this whole sentence in horizontal line----------------------------------------------------------The whole idea what we are looking for is, depends upon the maximum length of text (dyamic), the text box width should increase at max. 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