Hi.
I need to export my report to Excel, and some columns contains money amounts.
Overmore, in Spain, the decimal point is ",", not ".", so I must show "50,32 €" instead of "50.32 €", "€ 50.32" and so on.
I was trying it with setPattern. Currency "$" worked perfectly, but my currency (euros, with the symbol "€") did not work.
So, then I tried it with setTextFormatter, passing my own java.text.Format class. It works right with the currency (it shows "50,32 €"), but all cells
in the column appear with the "green corner", warning me about "it's a number stored as a string". So, this "green corner" must be fixed.
How could I get my format ("50,32 €") without strings, "green corners",etc. ?
Any answer would be very appreciated. Thank you in advance
_____________________________________________________________________________
Hola.
Necesito exportar mi infome a Excel. Algunas columnas contienen cantidades de dinero.
Además, en España, el separador decimal es ',' , no '.' , y es obligatorio mostrar "50,32 €".
Lo estaba intentando con setPattern. La moneda "$" funcionaba, pero mi moneda (euros, con el símbolo "€") no.
Entonces lo intenté con setTextFormatter, pasando mi propio formateador que extiende java.text.Format class. Funciona bien, porque muestra "50,32 €", pero las celdas de la columna muestran la "esquina verde" de Excel, avisándome que "Es un número almacenado como texto". Estos avisos de la "esquina verde" no deben salir.
¿Cómo puedo mostrar mi formato ("50,32 €") sin convertir a String (que parece que es un problema para mí), avisos en "esquinas verdes",etc. ?
Muchas gracias de antemano. Un saludo
