摘要:
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... 阅读全文
摘要:
public static class Excel { /// <summary> /// 将dataset里的数据导出为Excel. /// </summary> /// <param name="fileName">导出时保存的文件名.</param> /// <param name="page">页对象.</param> /// <param name="dataset">数据集.</param> public static void 阅读全文