pjacobsma_1 Posted January 7, 2022 Share Posted January 7, 2022 I am having a problem with currency fields in an Excel export. I have the following pattern in my Jasper report for the currency field: ¤#,##0.## I am using the REPORT_LOCALE parameter to tell Jasper to use locale to format the currency field, and I use the setDetectCellType(true) option in the JRXlsxExporter configuration. But when I open the Excel spreadsheet, the column values display like this: ¤2,722.48.I am using the jasperreports-6.18.1 jar. Link to comment Share on other sites More sharing options...
davidfritch Posted October 10, 2022 Share Posted October 10, 2022 I found this answer on Stack Overflow https://stackoverflow.com/a/69773797/3761102To restate it hereIn your Field Expression use NumberFormat.getCurrencyInstance($P{REPORT_LOCALE}).format($F{currency_value}). 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