wrap text in a report with iReport Designer 5.1.0

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?

Attachments: 
ibradien's picture
300
Joined: Jan 18 2012 - 8:22pm
Last seen: 1 year 9 months ago

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

Attachments: 
AttachmentSize
Image icon wrap_text_editted.png50.56 KB
Ankur Gupta's picture
Joined: Jan 21 2013 - 10:36pm
Last seen: 3 months 4 weeks ago

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,

ibradien - 9 years 11 months ago

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

Ankur Gupta's picture
Joined: Jan 21 2013 - 10:36pm
Last seen: 3 months 4 weeks ago

 

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.

Do you have any other solution to solve the problem of band height and wrap text ?
 
Thanks,
Baim

 

Attachments: 
AttachmentSize
Image icon wrap_text_ireport.png98.79 KB
ibradien's picture
300
Joined: Jan 18 2012 - 8:22pm
Last seen: 1 year 9 months ago

 

Hi,
Can you let me know that this instability occurs at the page break or is in between the pages.Try setting the Position type to Relative to top.
And you could do one more thing , you could go to the the detail section and see the properties there is an option Split type- set it to prevent , because of this it might be splitting the columns unevenly.
Please try this and let me know.
 
Thanks,
Ankur
Ankur Gupta's picture
Joined: Jan 21 2013 - 10:36pm
Last seen: 3 months 4 weeks ago

 

Hi Ankur Gupta,

Thank you for your suggestion.

Instability in the tag <detail>, or between <detail> and <summary>, please see attachment.

Thanks

Baim

Attachments: 
AttachmentSize
Image icon reconfiguration_results.png111.98 KB
ibradien's picture
300
Joined: Jan 18 2012 - 8:22pm
Last seen: 1 year 9 months ago

 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

 

ramuhrao's picture
Joined: Jan 24 2014 - 4:02am
Last seen: 7 years 3 months ago

Hi guys,

 wrapping  text in jaspersoft studio.

select all rows and set properities :

Set position type of the field to "float"
- Set stretch type to "Relative to Band height"
- Turn stretch with overflow on (True)
.

Regards,

Harish

 

 

 

 

 

 

harishbabul.y's picture
Joined: Dec 12 2014 - 6:37pm
Last seen: 6 years 5 months ago
Feedback