Hi,
Hi,
Let me explain in details.
Your MS Excel (US English) version will calculate on B2 cell as 2011 and C3 as YYYY if you change Regional\Settings\ to Russian in Windows OS and restart MS Excel. The reason is because MS Excel uses localized format to calculate formula.
Users have many applications on workstation and the Russian format in OS is used everywhere, they cannot change it to English.
Users type “=ТЕКСТ(СЕГОДНЯ(); “ГГГГ”)” in MS Excel and it calculates as 2014. They can’t type YYYY instead of ГГГГ as it will result as YYYY in MS Excel instead of 2014 and all depended cells will show wrong values, report will be broken for use/developing in MS Excel.
There is no problem with localized function name (ТЕКСТ) or localized delimiter for function parameters ( that typed by users as MS Excel saves not localized data in Spread sheet Open XML file. It looks as follows in the provided report:
TEXT(A1,“ГГГГ”)
…
As you can see from above MS Excel has saved “ТЕКСТ” as “TEXT” and delimiter “;” as “,”.
But format parameter is locale depended in this function. You already have implemented some locale depended API, for example getDisplayStringValue:
@Test
public void formatValue() {
try {
Workbook wb = new Workbook();
Worksheet ws = wb.getWorksheets().add("test");
Cell cell = ws.getCells().get(0,0);
cell.setValue(new Date());
Style style = cell.getStyle();
style.setNumber(22);
cell.setStyle(style);
System.out.println(cell.getDisplayStringValue());
} catch (Exception e) {
System.out.println("Error");
e.printStackTrace();
}
}
Output for VM arguments “-Duser.language=en -Duser.country=US” looks as follows:
6/19/2014 15:21
Output for -Duser.language=ru -Duser.country=RU:
19.06.2014 15:28
I think locale depended resource file can be added to Aspose. According to Java locale Aspose calculation engine will use appropriate resource file for MS Excel standard functions. This file will contain localized formats.
This problem has high priority for us, it makes impossible to process these reports with Aspose. Could you estimate time frame to resolve the issue?
Thanks.
Hi,
Hi,
Hi,
Hi,
Thanks for your posting and using Aspose.Cells.
We have checked your issue status from database. It is resolved. Hopefully, we will provide you a fix. Once, the fix will be available, we will let you know asap.
The issues you have found earlier (filed as CELLSJAVA-40863) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.