Hi Team
I have a sheet populated through Excel where the Date 12-December is custom formatted as 12-Dec.
The same thing when i formatted using aspose.cells it is not formatted to 12-Dec.
Below is the logic used for formatting.
Range range = cells.CreateRange(“B” + rowno);
range.Value = mydr[“period”];
Style st23 = xlwkbk.CreateStyle();
st23.SetCustom(“d-mmm”,true);
StyleFlag flag23 = new StyleFlag();
flag23.All = true;
range.ApplyStyle(st23, flag23);
xlclose();
Attached the sheets populated via Excel and Aspose.
Please refer to first sheet - B7:B16
Common.zip (57.0 KB)
Thanks
Siva Poreddy