Excel
newhand2004
行政行业,个人小程序开发
展开
-
将repeater、datalist、gridview中的数据导出到Excel中的简单方法
Response.ContentType = "application/vnd.ms-excel"; Response.Charset = "";this.EnableViewState = false; System.IO.StringWriter tw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new S转载 2006-10-13 23:51:00 · 1000 阅读 · 0 评论 -
将DataSet里所有数据导入Excel
/// /// 将DataSet里所有数据导入Excel. /// 需要添加COM: Microsoft Excel Object Library. /// using Excel; /// /// /// public static void ExportToExcel(string filePath, DataSet ds) { object oMissing =转载 2006-10-13 23:53:00 · 475 阅读 · 0 评论