主要通过ajax调用函数Getinfo 1.定义表dh DataTable dh = new DataTable(); 2.创建表头 public void CreateCol(string ColumnName) { DataColumn dc = new DataColumn(ColumnName, Type.GetType("System.String")); dh.Columns.Add(dc); } public void CreateRow(string ColumnNam…
1 增加应用 Microsoft.Office.Interop.Excel 2 引用命名空间 using Excel = Microsoft.Office.Interop.Excel; /// <summary> /// If the supplied excel File does not exist then Create it /// </summary> /// <param name="FileN…
<1> using System; using System.Collections.Generic; using System.Linq; using System.Web; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.SS.Formula.Functions; using System.IO; using System.Text; namespace 导入导出Excel { /// <summary&g…