首页 > 学院 > 开发设计 > 正文

excel 导出

2019-11-11 05:00:01
字体:
来源:转载
供稿:网友
HttpContext.Current.Response.ContentType = "application/vnd.ms-Excel";                HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF8;                HttpContext.Current.Response.Charset = "Utf-8";                HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode("HuoHuaNianTongJi.xls", System.Text.Encoding.UTF8));                HttpContext.Current.Response.Write(strTable);                HttpContext.Current.Response.End();
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表