ASP生成WORD文件的方法

来源:互联网 发布:怎样注册淘宝返利 编辑:程序博客网 时间:2024/05/19 09:13

 方法一:

<%
    Response.ContentType 
= "application/vnd.msword"
    Response.AddHeader 
"Content-Disposition","attachment;filename=周报.doc"
    response.buffer
=true
    response.expires
=0
    Response.Write(
"从这里开始,输出你想输出的东西就可以了!")
%
>