falcon-eu Posted March 22, 2019 Share Posted March 22, 2019 Hi all,I have following text:Aaaaaaaa a aaaaaaa aaaaaa aaaaaa a aaaaaa aaaaaaa aaa aa aaaaa aaaaaaaaa aaaa aaaaaaaa aaaaaaaaaaa aa aaa aaaaa aaaaaaaa aaaaa aaa. aa aaaaaaa aaaaaa aaaaaa aaaaaaaa aa aaaaaaa aaaaaa aaaa aaaaaaa, aaaaaa aaaaaaaaaa aaaa:naaaaa aaaaaaaaaaa aa aaaaaaaa aaaaa aaaaat t t t n 31.12.2017 31.12.2018naaaa aaaaaaa aaaa aa aaat 0,0000t aa 0,0000 aa naaaa aaaaaaa aaa aa aaat 1,1711t aa 4,0000 aa naaaa aaaaaa aaaaaaaaa aaaa aaaaaaa aaaaaaaaaaa aaaaa aaaaaaaa aa aaaaaa aaaaa aaaaaa aaaaa a aaaa aaaaaaaThis is converted into PDF document and text is stretched out:<band height="15" splitType="Stretch"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" stretchType="NoStretch" x="0" y="0" width="490" height="15" uuid="7e24c6a9-5c03-43a5-82ea-151bff88d24a"/> <textElement textAlignment="Justified"> <font fontName="CustomFont" pdfEncoding="Cp1250"/> </textElement> <textFieldExpression><![CDATA[$F{content}]]></textFieldExpression> </textField></band>I would like to have no space between number digits. How to solve this issue? I tried using properties:<property name="net.sf.jasperreports.export.pdf.justified.letter.spacing" value="false"/><property name="net.sf.jasperreports.export.pdf.force.linebreak.policy" value="true"/>but not help.Thank you in advance. Link to comment Share on other sites More sharing options...
hozawa Posted March 23, 2019 Share Posted March 23, 2019 I just tested with JasperReports 6.6.0 and 0,000 was shown intact in the pdf. One difference was that I didn't specify any font. Try changing the font and see what happens. Link to comment Share on other sites More sharing options...
falcon-eu Posted March 28, 2019 Author Share Posted March 28, 2019 I removed t signs and it works correct now but I have annother issue. When text in some lines are short jasper forced the text to be justified and it looks bad in my opinion. How to prevent justify when text in some lines are short? Thank you in advance. 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