gaurav.raisinghani Posted April 5, 2022 Share Posted April 5, 2022 We have static text cutting while exporting reports to pdf in Linux Deployments. The values seems to be displayed correctly only the static text is cut off. Below is the screenshot for report pdf in Windows and Linux Deployments. Any help or input would be really appreciated. Report on Linux regionReport on Windows regionCode for implementing static text and valuesStatus field<staticText> <reportElement positionType="Float" x="0" y="11" width="29" height="11" forecolor="#000000" uuid="33ebd0e4-a138-4a26-943e-a7c1b23fd5ed"/> <textElement> <font isBold="true"/> </textElement> <text><![CDATA[status: ]]></text> </staticText> <textField> <reportElement x="29" y="11" width="140" height="11" forecolor="#000000" uuid="465caf4d-66e7-412f-81f3-02349696cfc0"/> <textFieldExpression><![CDATA[$P{claimStatus}]]></textFieldExpression> </textField>Loss Descritpion<frame> <reportElement positionType="Float" x="0" y="33" width="473" height="11" isRemoveLineWhenBlank="true" forecolor="#000000" uuid="2fc22d18-89c7-4b7c-a583-ca4f7acd2344"> <printWhenExpression><![CDATA[$P{lossDescription} != null && $P{lossDescription}.length() > 0]]></printWhenExpression> </reportElement> <staticText> <reportElement positionType="Float" x="0" y="0" width="69" height="11" isRemoveLineWhenBlank="true" forecolor="#000000" uuid="70d296f8-0869-4ecf-bf57-a6bdc50366de" backcolor="blue"> <printWhenExpression><![CDATA[$P{lossDescription} != null && $P{lossDescription}.length() > 0]]></printWhenExpression> </reportElement> <textElement> <font isBold="true"/> </textElement> <text><![CDATA[Loss Description: ]]></text> </staticText> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="69" y="0" width="368" height="11" isRemoveLineWhenBlank="true" forecolor="#000000" uuid="7318184a-2d1a-4c75-aaf7-e5c2609e7d92"> <printWhenExpression><![CDATA[$P{lossDescription} != null && $P{lossDescription}.length() > 0]]></printWhenExpression> </reportElement> <textFieldExpression><![CDATA[$P{lossDescription}]]></textFieldExpression> </textField> </frame> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now