asp.net导出excel和打印指定内容的简单代码
摘要:
导出Excel:System.IO.StringWriter sw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(sw); this.table.RenderControl(hw); Response.Clear(); Response.ContentType = "application/vnd.ms-excel"; Response.Charset = ""; Page.EnableViewState 阅读全文
posted @ 2011-06-27 10:24 MyBeN 阅读(1841) 评论(0) 推荐(0) 编辑