将html中的内容转换成excel数据

fliedfish 2003-02-17 06:01:54
将html中的内容转换成excel数据,有那位大哥能给我一个例子
...全文
172 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2003-02-17
  • 打赏
  • 举报
回复
<%@ Language=VBScript %>
<%
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
%>
<table border="2" cellpadding="20">
<tr>
<th>项目 A</th>
<th>项目 B</th>
<th>总计</th>
</tr>
<tr>
<td>4</td>
<td>3</td>
<td><font color="red">=sum(a2:b2)</font></td>
</tr>
<tr>
<td>2</td>
<td>1</td>
<td><font color="red">=sum(a3:b3)</font></td>
</tr>
</table>
yonghengdizhen 2003-02-17
  • 打赏
  • 举报
回复
如果只是显示的话,通过Response.ContentType=excel的mime类型
就可以了..
否则.自己操作excel.application吧..

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧