摘要:
public FileResult ExcelFile() { //new 一个列表待用 List<Student> allList = new List<Student>(); //将该表中所有数据获取出来 var slist = bll.GetAllList(); Student model = 阅读全文
摘要:
1 public string ExcelFile() 2 { //指定文件路径, 3 string fileName=@"d:\Stu.xls"; //创建一个文件流,并指定其中属性 4 using(FileStream fs = new FileStream(fileName,FileMode. 阅读全文