freak182 Posted July 30, 2012 Share Posted July 30, 2012 Hi, I have this problem when exporting to pdf. The text, especially the letter, was breaks to new line even if the was short. please see the attach image for more details. The "Bank Wide" is not cut off but the "COS" suppose to be "COSO" the last letter was breaks to anew line. ..I already to detect if there is a new line and replace it with empty string but i have no luck.im using jasperreport 4.0.2itext-2.1.7cheers.thanks a lot. Code:<groupHeader> <band height="29"> <textField isStretchWithOverflow="true" evaluationTime="Group" evaluationGroup="countDirectory"> <reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" mode="Opaque" x="13" y="1" width="196" height="25" backcolor="#009999"/> <box topPadding="5" leftPadding="1" bottomPadding="5" rightPadding="1"/> <textElement textAlignment="Center" verticalAlignment="Middle" markup="none"> <font size="10" isBold="true" isPdfEmbedded="false"/> </textElement> <textFieldExpression><![CDATA[$F{directory}]]></textFieldExpression> </textField> </band> </groupHeader> Link to comment Share on other sites More sharing options...
arthiraja Posted July 31, 2012 Share Posted July 31, 2012 I have faced a similar problem about a year ago and eventually found out that the issue was due to the font. Change the font helped me resolve the problem. Hope this helps solve your issue as well. Link to comment Share on other sites More sharing options...
freak182 Posted July 31, 2012 Author Share Posted July 31, 2012 Hi arthiraja,I changed the font from sanserif to arial but the issue is still there. I even change the font-size to 6 but it just change the size and still the letters are falling-out. any idea?configurattion? Link to comment Share on other sites More sharing options...
arthiraja Posted July 31, 2012 Share Posted July 31, 2012 Are you able to visibly see the font change?Refer the below link and see if it help.http://stackoverflow.com/questions/7964833/text-wrapping-issue-in-pdf-export-in-ireport-4-0-2 Regards,Arthi Link to comment Share on other sites More sharing options...
freak182 Posted July 31, 2012 Author Share Posted July 31, 2012 Thanks Arthi... but how can i do that in a web application? cheers. Link to comment Share on other sites More sharing options...
freak182 Posted July 31, 2012 Author Share Posted July 31, 2012 Hi Arthi, I just upgraded to jasperreport-4.1.1 and it solves the issue thanks.cheers. 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