using System;using System.Collections.Generic;using System.Linq;using System.Text;using NPOI.HSSF.UserModel;using NPOI.HPSF;using NPOI.POIFS.FileSystem;using System.IO;using NPOI.SS.Util; namespace ExcelPlay{ public class Excel { public
添加引用 using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Text; 导入 public DataSet ExcelToDataTable(string path) { DataSet dataSet1 = new DataSet(); HSSFWo