ASP导出为Word的最简单方法

人气:
402
日期:
2018/3/21
HTML 网页设计 W3C 402

摘要:ASP导出为Word的最简单方法

asp导出word并保存到客户端
头部:
<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:st1="urn:schemas-microsoft-com:office:smarttags"
xmlns="http://www.w3.org/TR/REC-html40">
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<!--输出内容-->
<%
Response.ContentType = "application/vnd.ms-word"
Response.AddHeader "Content-Disposition", "attachment;filename=NAME.doc"  
%>




Copyright © 2014 ASP技巧教程源码大全 All Rights Reserved
晋ICP备14006235号-3 页面执行时间:93.994毫秒 返回顶部

?分享按钮