using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System.IO; using System.Reflection; namespace WebApplication1.Controllers { public cl
NPOI还是比较好用的,引用dll程序集即可 1创建workbook和工作流 HSSFWorkbook workbook = new HSSFWorkbook(); MemoryStream ms = new MemoryStream(); 2这里是一个多sheet的例子,可以通过循环一个个生成 1 List<DataTable> listtable = new List<DataTable>(); 2 for(int t = 1; t < = listtable.Count
首先需要下载一个NPOI.dll 下载地址:http://download.csdn.net/detail/president810/9503038 using System; using System.Collections.Generic; using System.IO;//引用NPOI using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; namespace Sola.ExportTakeClass { public class Expo