2012年4月13日
摘要: public class ExcelHelper { //导出csv格式 public static void ExportToCSV(Page page, DataTable dt, string FileName) { System.Web.HttpResponse resp; resp = page.Response; resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312"); r... 阅读全文
posted @ 2012-04-13 09:22 gotolovo 阅读(403) 评论(0) 推荐(0) 编辑
摘要: public static class Excel { /// <summary> /// 将dataset里的数据导出为Excel. /// </summary> /// <param name="fileName">导出时保存的文件名.</param> /// <param name="page">页对象.</param> /// <param name="dataset">数据集.</param> public static void 阅读全文
posted @ 2012-04-13 09:21 gotolovo 阅读(329) 评论(0) 推荐(0) 编辑