<%
action=trim(request("action"))
if action="create" then
Response.ContentType = "application/ms-download"
Response.AddHeader "content-disposition", "attachment; filename=Table" & date() & ".xls"
else
%>
<form action="?action=create" method="post" name="out_excel">
<div align="center">
<input name="Submit" type="submit" value="生成Excel">
</div>
</form>
用这个就可以直接将页面的内容导出为EXCEL文件