Let's go

随笔分类 -  上传下载整合

摘要:一、NPOI组件导入 右键项目菜单,“管理NuGet程序包” 直接搜索“NPOI”即会出现列表,下载第一个进行安装即可 安装完成后项目引用会出现以下几项 二、基础使用 添加引用 Excel操作开始 文件导出 测试代码(以MVC实例): 阅读全文
posted @ 2019-08-20 09:29 chenze 阅读(1375) 评论(0) 推荐(0) 编辑
摘要:1. 如果是身份证 string.Concat("'", dt.Rows[i]["CardNum"].ToString()) 阅读全文
posted @ 2019-02-22 10:21 chenze 阅读(467) 评论(0) 推荐(0) 编辑
摘要:引入EPPlus的NuGet程序包 一丶导出excel文件 1 static void Main(string[] args) 2 { 3 FileInfo newFile = new FileInfo(@"E:\test.xlsx"); 4 if (newFile.Exists) 5 { 6 ne 阅读全文
posted @ 2018-08-27 12:07 chenze 阅读(2107) 评论(0) 推荐(0) 编辑
摘要:一丶删除文件 1 public string DelFile(string fileRelativePath) 2 { 3 4 try 5 { 6 string filePath = Server.MapPath("~" + fileRelativePath); 7 8 //if (System.I 阅读全文
posted @ 2018-08-24 15:08 chenze 阅读(210) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-08-22 15:11 chenze 阅读(26) 评论(0) 推荐(0) 编辑
摘要:一丶下载服务器图片 1 static void Main(string[] args) 2 { 3 try 4 { 5 qds107762222_dbEntities db = new qds107762222_dbEntities(); 6 var zucai_Team = db.Set<zuca 阅读全文
posted @ 2018-08-22 13:34 chenze 阅读(194) 评论(0) 推荐(0) 编辑
摘要:一丶参考地址 1 <script type="text/javascript"> 2 var auth = "@(Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[F 阅读全文
posted @ 2018-07-18 14:47 chenze 阅读(225) 评论(0) 推荐(0) 编辑
摘要:更多详细内容 view页面: Controller 1 #region 09-获取导出数据 2 /// <summary> 3 /// 09-获取导出数据 4 /// </summary> 5 /// <param name="student">用来接收用户信息(涵盖多条件)</param> 6 / 阅读全文
posted @ 2018-06-27 15:48 chenze 阅读(261) 评论(0) 推荐(0) 编辑

有事您Q我
点击右上角即可分享
微信分享提示