Search code examples
javajasper-reportsireport

Why does currency formatting don't appear in iReports preview


I use Jasper Reports for the reporting purposes on a java SE software. I configured the report for currency formatting and it appeared correctly on the iReports. enter image description here

But when I get the same report from jasper viewer (on the software) it appeared without formatting according to the pattern. enter image description here

Is there a way to fix this?

P.S. I retrieve data from a table (using a query), I'm using Jasper Reports 5.1.0


Solution

  • Judging by the difference in the date formats in the upper right corner, it would appear that your iReport and JasperViewer installations run in different locales. You can pass any locale to the standard REPORT_LOCALE report parameter.