Fast Excel import and export

来源:互联网 发布:cocos2d-x用js编写 编辑:程序博客网 时间:2024/06/04 17:56

原文:http://www.codeproject.com/Tips/829389/Fast-Excel-import-and-export

相关项目代码:https://github.com/jsegarra1971/SejExcelExport

ExcelReader myReader=new ExcelReader("this_is_my_excel_file.xlsx");    // Open the filemyReader.Process(OnExcelCell);                                         // Process it
​void OnExcelCell(char Column, int RowNumber, string value){ if (Column=='#') Console.Write("Row: "+RowNumber); else Console.Write("Column: "+Column+" Value: "+value);}
ExcelWriter t = new ExcelWriter("Template.xlsx");   // This is the templateMySampleData data = new MySampleData();             // This is the IDataReadert.Export(data,"output_file.xlsx");                  // Use the template to create the data file
....



0 0
原创粉丝点击