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