daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月28日

摘要: 用foreach遍历二维数组 static void Main(string[] args) { object[,] dataArray = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; int count = 0; foreach (object item in dataArray) { Console.Write(item); Console.Write(" "... 阅读全文
posted @ 2012-08-28 15:34 daixinet.com 阅读(6148) 评论(0) 推荐(0) 编辑

摘要: 创建Excel private static void CreateSpreadSheet() { string fileName = "E:\\01.xlsx"; string sheetName = "test"; using (SpreadsheetDocument spreadSheet = SpreadsheetDocument.Create(fileName, SpreadsheetDocumentType.Workbook)) { //... 阅读全文
posted @ 2012-08-28 13:53 daixinet.com 阅读(1686) 评论(0) 推荐(0) 编辑