首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

导出到Excel

整理日期:2007年08月14日 【字体:

Response.Clear();
Response.Buffer = true;
Response.Charset = "GB2312";
Response.AppendHeader("Content-Disposition", "attachment;filename=FileName.xls");
// 如果设置为 GetEncoding("GB2312");导出的文件将会出现乱码!!!
Response.ContentEncoding = System.Text.Encoding.UTF7;

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-08/1187097171.html
Response.ContentType = "application/ms-excel";//设置输出文件类型为excel文件。
Tags:
导出到Excel
'http://www.etoow.com/html/2007-08/1187097171.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved