首页 > 技术文章 > Excel导出函数

ince 2018-06-11 09:22 原文

<%

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
%>

推荐阅读