I am generating a workbook using aspose cells. I am creating a named custom style using custom number format string. In case of default english, the style named “M1” has custom number formatting string set as “#,##0;-#,##0” with comma used as thousand separator. In case of es-ES locale, the string is set to “#.##0;-#.##0” with dot as thousand separator. However when the workbook is generated, I see the style’s number format string switches to “#,##0;-#,##0” and the number appearing in the cell becomes incorrectly formatted.
I am already setting locale on the workbook before saving it. e.g :
Locale locale = new Locale("es", "ES");
wb.getSettings().setLocale(locale);
What should be done to make formatting stick and get applied correctly?
thanks!