Web导出Word需要添加头文件 - 中国WEB开发者网络 (http://www.webasp.net) -- 技术教程 (http://www.webasp.net/article/) --- Web导出Word需要添加头文件 (http://www.webasp.net/article/28/27816.htm) |
| -- 作者:未知 -- 发布日期: 2006-09-21 |
|
这个在asp的时候我是这么做的,但是在asp.net中,还是推荐用现成的对象好,比如 HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + filename); //HttpContext.Current.Response.ContentType = "application/ms-excel";//image/JPEG;text/HTML;image/GIF;vnd.ms-excel/msword System.IO.StringWriter tw = new System.IO.StringWriter(); HttpContext.Current.Response.Write(tw.ToString()); # re: Web导出Word需要添加头文件 2006-08-15 23:50 尧尧 http://www.cnblogs.com/zjy/archive/2006/08/15/477651.html |
| webasp.net |