11 2014 档案

摘要://添加引用NPOI.dll//添加using NPOI.HSSF.UserModel;/// /// 导出数据到Excel /// /// /// public bool ExportOrderToExcel(ref string returnMsg) ... 阅读全文
posted @ 2014-11-21 11:01 @睦 阅读(1467) 评论(0) 推荐(0) 编辑
摘要:/// /// 创建TXT文本并往里面写入数据/// /// 要创建的文件名,不要后缀名protected void WriteTxt(string FileName) { Encoding code = Encoding.GetEncoding("gb2312"); //编码格式 strin... 阅读全文
posted @ 2014-11-18 17:15 @睦 阅读(3914) 评论(0) 推荐(0) 编辑
摘要:/// /// 将Excel表里的数据填充到DataSet中 /// /// Excel文件的路径(包含文件名) /// Excel的文件名 /// public static DataSet ExecleDs... 阅读全文
posted @ 2014-11-18 16:02 @睦 阅读(749) 评论(0) 推荐(0) 编辑
摘要://需要在bin里面添加Interop.Microsoft.Office.Interop.Excel.dll 的引用//添加引用using System.Data;/// /// 导出数据到Excel /// /// 查询条件 /// /// public... 阅读全文
posted @ 2014-11-18 15:45 @睦 阅读(1038) 评论(0) 推荐(0) 编辑
摘要://在web.config添加发送邮件的几个重要属性 方便更改//发件人的用户名 //发件人的密码 //SMTP服务器 //收件人地址 如果有多个用","隔开//添加引用using System.Net.Mail; /// /// 使用邮箱发送邮... 阅读全文
posted @ 2014-11-18 14:57 @睦 阅读(280) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示