我尝试使用AsposeCell API(C#)来设置单元格格式:的Aspose电池时间格式
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);
该小区正常显示,但格式为: “所有格式”(而不是 “时间”)。也就是说,style
属性不起作用。怎么了?
谢谢!
尝试在[Aspose Cells Support论坛](https://forum.aspose.com/c/cells)上询问。他们通常很快回答。 – Magnus
马格努斯,谢谢你的建议! –