I am having a problem with my PDF report when a line in a text field is truncated before filling in the text field. The number of missing characters (5-6) will not be enough to go to the end textField.
I added a property text.truncate.at.charto the report element, but the line is still truncated (after displaying several characters than before).
I also checked if there are other report elements blocking the end of the text field, but they are not.
Finally, I tried to find the potential fix I found and added "\ n" to the end of the line, but that also did not help.
IReport Designer displays the entire line.
PDF report

IReport Designer Preview

Does anyone know how to get Jasper Reports to use all the space in the text box?
PS: permission to overflow text on the next line is not possible due to the wishes of the client.
I am using Jasper Reports 5.5.2.
Edit:
textFieldis part of the detailed range in the subtitle. I am not allowed to share all .jrxml, but this is the code for the text field:
<textField>
<reportElement style="Unicode" mode="Opaque" x="0" y="2" width="467" height="17" forecolor="#FFFFFF" backcolor="#00007F" uuid="e810d7a4-6802-4620-af2f-4c385a9e80a6">
<property name="net.sf.jasperreports.text.truncate.at.char" value="true"/>
</reportElement>
<textElement verticalAlignment="Middle" markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[" More Details - "+$F{Description} + " ("+$F{Id}+")"]]></textFieldExpression>
</textField>
Description of variable length, Id - GUID. In this case, there textFieldshould be enough space to display the entire GUID.
Here is another screenshot from isStretchWithOverflow="true":

The text is now displayed completely in the first line, but textFieldmore that is not accepted by the client.
source
share