Jump to content
Changes to the Jaspersoft community edition download ×
  • Need way for a text field to show as much of content as possible without word-break based truncation


    Jim W

    Issue Description

    In general, in a report, if the text string is longer than the size of a text field, the truncation by default is based on space or word boundary.

    How does one force a hard truncation without any of the above considerations?


    Resolution

    Set this property globally in jasperreports.properties,

    net.sf.jasperreports.text.truncate.at.char=true
    

    Or, inside a report,

    <property name="net.sf.jasperreports.text.truncate.at.char" value="true"/>
    

    Ref. Case 00072707


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...