摘要: public FileResult ExcelFile() { //new 一个列表待用 List<Student> allList = new List<Student>(); //将该表中所有数据获取出来 var slist = bll.GetAllList(); Student model = 阅读全文
posted @ 2020-03-11 17:56 默緣心 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 public string ExcelFile() 2 { //指定文件路径, 3 string fileName=@"d:\Stu.xls"; //创建一个文件流,并指定其中属性 4 using(FileStream fs = new FileStream(fileName,FileMode. 阅读全文
posted @ 2020-03-11 16:25 默緣心 阅读(717) 评论(1) 推荐(1) 编辑