摘要: [HttpPost] public ActionResult UploadExcel(HttpPostedFileBase file) { if (file != null && file.ContentLength > 0) { // 保存上传的文件 var path = Path.Combine 阅读全文
posted @ 2023-12-11 20:57 荧屏 阅读(5) 评论(0) 推荐(0) 编辑
摘要: public static byte[] ConvertDataTableToExcelBuffer(DataTable table) { ExcelPackage.LicenseContext = LicenseContext.NonCommercial; byte[] result = null 阅读全文
posted @ 2023-12-11 18:11 荧屏 阅读(3) 评论(0) 推荐(0) 编辑