Hi Apose team,
When we try to set cell style with style number, culture custom for that cell is set. How to avoid this behaviour?
Here is our code:
Workbook workbook = new Workbook(@“C:\Users\rkoncare\Downloads\Input.xlsx”);
Worksheet worksheet = workbook.Worksheets[0];
Cell cell = worksheet.Cells[“I22”];
Style style = cell.GetStyle(true);
Console.WriteLine(style.CultureCustom == null ? “null” : style.CultureCustom);
style.Number = 7;
Console.WriteLine(style.CultureCustom == null ? “null” : style.CultureCustom);
Output of this code is:
null
“$”#,##0.00_);("$"#,##0.00)
I attached Input.xlsx file.
Input.zip (11.4 KB)
Thanks in advance.
Koncarevic Radovan