Hello!
I try to set cell format using AsposeCell API (C#):
var cell = worksheet.Cells[i, j];
Style style = cell.GetStyle();
style.Number = 21;
cell.SetStyle(style);
var time = new TimeSpan(1, 2, 3);
cell.PutValue(time);
This cell is displayed correctly, but has format: “all formats” (not “Time”). That is to say, style property did not work. What’s wrong?
Thank you!