Apose.Cell导出的Excel数字格式正确显示

使用Apose.Cell导出Excel时假如导出的如上图:边框左上角有绿色三角形区域,选中某个区域会出现感叹号询问是否要将文本转换为数字

那么在代码中使用PutValue方法时,后面的bool参数设为true即可:Cells[row,col].PutValue(value,true);

猜你喜欢

转载自www.cnblogs.com/zhyue93/p/apose-cell1.html