[#14221] - Jasper Report Text Field gets cut even after setting textAdjust="StretchHeight"

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

<band height="20">
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" x="10" y="0" width="545" height="20" uuid="835e5c50-820a-48e7-aa71-b0e5fea3737f">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<box bottomPadding="10">
<pen lineWidth="0.0"/>
</box>
<textElement textAlignment="Justified" markup="none">
<font fontName="Helvetica Neue" size="8.7"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["RAY ENGINEERING PRIVATE LIMITED mainly deals in products such as GENERAL CONSTRUCTION SERVICES OF HIGHWAYS, STREETS, ROADS, RAILWAYS AND AIRFIELD RUNWAYS, BRIDGES AND TUNNELS (37.32%),CONSTRUCTION SERVICES OF OTHER NON-RESIDENTIAL BUILDINGS SUCH AS EDUCATIONAL INSTITUTIONS,HOSPITALS, CLINICS INCLUDING VERTINARY CLINICS, RELIGIOUS ESTABLISHMENTS, COURTS, PRISONS, MUSEUMS AND OTHER SIMILAR BUILDINGS (16.22%),GENERAL CONSTRUCTION SERVICES OF HARBOURS, WATERWAYS, DAMS, WATER MAINS AND LINES & IRRIGATION AND OTHER WATERWORKS (12.48%)"]]></textFieldExpression>
</textField>
</band>

The whole text is not getting printed . It gets cut after OTHER . If i add more words in the end after (12.48%) it starts displaying the whole text. This unusual issue seems to due to a bug in jasper library as i have tried every aspect to correct this.

jasper library
tarungirish28's picture
Joined: Jun 22 2021 - 5:21am
Last seen: 3 weeks 8 hours ago

2 Comments:

#1

What is the JasperReports version that are you using?

Also, where do you see the cut text? Is it in a report export (if so, which format)?

Regards,
Lucian

#2

The version is 6.19.1 and the format is .pdf

Feedback