Search code examples
javajasper-reports

JasperReports - textAlignment does not work


I am using Maven to add JasperReports in an existing project. I know that i need jasperreports-fonts to have different fonts, but setting textAlignment still does not work.

What dependency do i need to make textAligmnent to work? I can't really just add all the dependencies listed in the docs because that would make problems for other parts of the system.

I am using:

<dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports</artifactId>
        <version>5.5.0</version>
</dependency>

<dependency>
  <groupId>net.sf.jasperreports</groupId>
  <artifactId>jasperreports-fonts</artifactId>
  <version>5.6.1</version>
</dependency>

Solution

  • I got it to work. I just used a JasperReport Studio of the same version as the jasperreport lib used on my server.