在线生成word xls

<%
'Response.AddHeader "Content-Disposition", "attachment;filename=members.xls"
'Response.ContentType = "application/vnd.ms-excel"

---------------上面是w o r d

Response.AddHeader "Content-Disposition", "attachment;filename=NAME.doc"

Response.ContentType = "application/msword"

---------------上面是xls

response.write "内容>" 
%>

你可能感兴趣的:(代码学习)