Jump to content

Recommended Posts

Posted

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"!!??

  • 1 month later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Posted

I could fix the problem by setting the JasperReports Version to 5.5.1 over toolbar > compilation button > drop down "Manage JasperReports Versions".

  • 5 months later...
Posted

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.DefaultJasperReportsContext

Any ideas?

 

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...