C#以贴数组方式产EXCEL,数值储存成文字问题
为了效率产出EXCEL.因此用贴数组方式产出EXCEL
string[,] AryData = new string[iTotalRows + 1, iTotalCols];//* 略range = sheet.get_Range("A" + iStartRow.ToString(), "I" + Convert.ToString(iStartRow + iTotalRows));range.Value2 = AryData;
range = sheet.get_Range("C9", "C10");range.NumberFormat = "G";range = sheet.get_Range("D9", "D10");range.NumberFormatLocal = "###,###,##0";range = sheet.get_Range("H9", "H10");range.NumberFormatLocal = "00";range = sheet.get_Range("F9", "F10");range.NumberFormatLocal = "@";range = sheet.get_Range("G9", "G10");range.NumberFormatLocal = "#";