response导出html到word
生活随笔
收集整理的這篇文章主要介紹了
response导出html到word
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
直接貼代碼:
Response.AppendHeader("Content-Disposition", "attachment;filename=result.doc");Response.ContentType = "application/ms-word";Response.Charset = "GB2312";Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");Response.Write("<html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\" xmlns=\"http://www.w3.org/TR/REC-html40\">");Response.Write(item.ResumeHtml);Response.Write("</html>");Response.End();總結
以上是生活随笔為你收集整理的response导出html到word的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 智能网联汽车 自动驾驶地图数据质量规范
- 下一篇: 突变点检测:带突变的趋势描述测试过程