C#导出excel单元格格式设置

转自:http://www.cnblogs.com/luowende2012/archive/2012/07/21/2602353.html

xSt.get_Range(oExcel.Cells[2, 5], oExcel.Cells[n + 3, 5]).NumberFormat = "#0.00%";

//文本:vnd.ms-excel.numberformat:@
//日期:vnd.ms-excel.numberformat:yyyy/mm/dd
//数字:vnd.ms-excel.numberformat:#,##0.00
//货币:vnd.ms-excel.numberformat:¥#,##0.00
//百分比:vnd.ms-excel.numberformat:#0.00%


你可能感兴趣的:(编程语言)