tgs Posted September 29, 2015 Posted September 29, 2015 The Text Alignment function (vertical + horizontal) for a Textfield is not working on a printed Report or JasperViewer created with JasperSoft Studio 6.1.1.This is a major problem for correct printed forms (i.e. invoices) and lists!Edit:The "Text Alignment" Properties of the TextField are set to "right".The xml source code is:<textField pattern="#,##0.00" isBlankWhenNull="true"><reportElement x="310" y="0" width="70" height="20" uuid="47bff71d-1207-4a34-a61b-dee99e9a3c4a"/><textElement textAlignment="Right"><font fontName="Arial" size="9"/></textElement><textFieldExpression><![CDATA[$F{order_sum}]]></textFieldExpression></textField>But in JasperViewer the value is displayed as alignment "left"!!??
tgs Posted November 13, 2015 Author Posted November 13, 2015 I could fix the problem by setting the JasperReports Version to 5.5.1 over toolbar > compilation button > drop down "Manage JasperReports Versions".
asgoodasiget Posted April 13, 2016 Posted April 13, 2016 I have the same problem, and when I tried your solution I get the following error when compiling:An internal error occurred during: "Building report".java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.DefaultJasperReportsContextAny ideas?
satish.mundra Posted June 19, 2018 Posted June 19, 2018 I am facing the same issue. AsGoodAsItGet did you find any solution for this?
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