I have an issue related to wrapping of text in pdf format. For all the formats like xls,rtf, and pptx the report works fine,however in pdf some text gets wrapped i.e. some l
Some elements (TextField or StaticText) can increase its height depends on stretch type and stretch with overflow properties. But element's width can not be changed without programming.
The quote from iReport Ultimate Guide:
Stretch type - This attribute defines how to calculate the element height during the print elaboration; the three possible values are as follows:- NoStretch - This is the pre-defined stretch type, and it dictates that the element height should be kept equal.
- RelativeToBandHeight - The element height is increased proportionally to the increasing size of the band; this is useful for vertical lines that simulate table borders.
- RelativeToTallestObject - The element modifies its height according to the deformation of the nearest element: this option is also used with the element group, which is an element group mechanism not managed by iReport
Stretch with overflow - When it is selected, this option allows the textfield to adapt vertically to the content, if the element is not sufficient to contain all the text line
You can use, for example ColumnBuilder class from DynamicJasper API to set column width.
You can also read this discussion.