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.
4 Comments:
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
The version is 6.19.1 and the format is .pdf
Hi. I'm having the same problem; my textfield elements are not stretching to be able to show the entire text in the <textFieldExpression>. I obviously have the textAdjust="StretchHeight" property, and I added <property name="net.sf.jasperreports.export.pdf.force.linebreak.policy" value="true"/>, since I found that several people advise it.
The report looks fine when seen in the "Preview" area of Jasper studio; the problem occurs only when the report is exported as a PDF file.
The version of Jasper studio I'm using is 6.12.2.
I urgently need a solution, please help.
I'm attaching one of my jrxml files as reference.
Thanks!
Hello! Same issue. I've been used isStretchWithOverflow="true" and it works, but Float for the boxes below it, or the strech type ElementGroupHeight for relatives, doesn't appear as in the Preview. Then, I try to use ScaleFont, wich is the best solution, but did not work either.
Version: 6.20