How to wrap text in a report with iReport Designer 5.1.0 ?
I already did settings:
- Set position type of the field to "float"
- Set stretch type to "Relative to Tallest Object"
- Turn stretch with overflow on (True)
but results are not as expected.
anyone know what the problem is?
7 Answers:
Hi baim,
For this issue what you need to do is that for the entire row i.e for all the cells in a particular row you will have to add the Stretch tupe Relative to the tallest so that all the data fields would get to equal height relative to the tallest in the particular row. I have depicted the same in the snap you have attached.
Hope this solves your issue.
Thanks,
Ankur Gupta
Attachment | Size |
---|---|
![]() | 50.56 KB |
Hi baim
You have done the stretch type to "Relative to Tallest Object" for all the elements of the row , and remove other Set position type of the field to "float"
and Turn stretch with overflow on (True) .
I think this might just work fine please let me know if it works.
Thanks,
Ankur Gupta
Hi Ankur Gupta,
I've set up all text fields in the tag <detail> </ detail>, but it does not work fine, because there is a problem of instability in the tag <detail> band height.
Attachment | Size |
---|---|
![]() | 98.79 KB |
Hi Ankur Gupta,
Thank you for your suggestion.
Instability in the tag <detail>, or between <detail> and <summary>, please see attachment.
Thanks
Baim
Attachment | Size |
---|---|
![]() | 111.98 KB |
you put one rectangle within the subreport then(it will repeat for each record then you will get the proper record in the table)
then set the following properties for both textfield and rectanle
Set position type of the field to "float"
- Set stretch type to "Relative to Tallest Object"
- Turn stretch with overflow on (True)
i think it will work
Hi Ankur Gupta, thank you for your comment.
The solution has been implemented, but doesn't solve the problem. because this problem has something to do with setting the height of the band ( <detail>...</detail> ).
this my code --> http://pastebin.com/m4HkYsQK
Thanks,