Excel导出函数

<%

Sub ExportToExcel

Response.ContentType = "application/vnd.ms-Excel"
Response.AddHeader "Content-Disposition", "attachment;Filename=Results.xls"
Response.Write "<body>"
Response.Write "<table border=1>"

Call WriteTableData

Response.Write "</table>"
Response.Write "</body>"
Response.Write "</html>"

End Sub
%>

猜你喜欢

转载自www.cnblogs.com/ince/p/9165612.html