摘要: 1、导出Excel :首先引用NPOI包(Action一定要用FileResult) /// <summary> /// 批量导出需要导出的列表 /// </summary> /// <returns></returns> public FileResult ExportStu2() { //获取l 阅读全文
posted @ 2016-08-31 09:51 听雨的人 阅读(502) 评论(0) 推荐(0) 编辑
摘要: @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } Index @Html.ActionLink("导出用户", "ExportExcel") @using (@Html.BeginForm("ImportExcel", "Excel", FormMethod.Post, new... 阅读全文
posted @ 2016-08-31 09:49 听雨的人 阅读(898) 评论(0) 推荐(0) 编辑