bmservices Posted June 5, 2018 Share Posted June 5, 2018 Hi together,is it possible to change the decimal separator in Jasper CSV export?I need decimals formatted like this:1,2345 instead of 1.2345Otherwise Excel will misinterpret the CSV after opening with doubl click.Especially f.e. 3.5 becomes 3. Mai!I searched here: http://jasperreports.sourceforge.net/config.reference.htmlbut did not find anything useful here: net.sf.jasperreports.export.csv.*Thx for tips, BerndPS: xlsx/xls export is not possible... too much data :-( Link to comment Share on other sites More sharing options...
hozawa Posted June 6, 2018 Share Posted June 6, 2018 Not sure but have you tried setting the following property?net.sf.jasperreports.csv.field.delimiterhttp://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.csv.field.delimiter Link to comment Share on other sites More sharing options...
bmservices Posted June 6, 2018 Author Share Posted June 6, 2018 Sorry hozawa, field delimiter is not correct. This is the delimiter between the columns. I want to change the decimal separator from "." to ",". Link to comment Share on other sites More sharing options...
riodavid Posted June 7, 2018 Share Posted June 7, 2018 The internal function SUBSTITUTE works for me.SUBSTITUTE($V{A_DECIMAL_NUMBER}.toString(),".",",") 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