
在ASP中怎么把页面中的数据导出到EXCEL
1个回答
推荐于2016-08-19 · 知道合伙人数码行家
关注

展开全部
在想导出结果的页面顶部加上以下代码即可:
<%
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename="记录"&year(now)&month(now)&day(now)&".xls"
%>
<%
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename="记录"&year(now)&month(now)&day(now)&".xls"
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询