<% Response.ContentType = "application/vnd.ms-excel" %>
<table width="164" height="61" border="1">
  <tr>
    <td align="center">編號</td>
    <td align="center">姓名</td>
</tr>
  <tr>
    <td align="center">6</td>
    <td align="center">Else</td>
</tr>
</table>

看asp代碼的部分是不是很簡單?
相對而言 php的導成excel的代碼

<?php
header('Content-type: application/x-msexcel');
?>


<table width="164" height="61" border="1">
  <tr>
    <td align="center">編號</td>
    <td align="center">姓名</td>
</tr>
  <tr>
    <td align="center">6</td>
    <td align="center">Else</td>
</tr>
</table>


作者:Else 's Blog
地址:http://www.aixq.com/post/1203/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
  • 中查看更多“asp導出excel的文件,附加php的方法 ”相关内容
  • 中查看更多“asp導出excel的文件,附加php的方法 ”相关内容
  • 中查看更多“asp導出excel的文件,附加php的方法 ”相关内容
  • 中查看更多“asp導出excel的文件,附加php的方法 ”相关内容
  • 中查看更多“asp導出excel的文件,附加php的方法 ”相关内容
  • 中查看更多“asp導出excel的文件,附加php的方法 ”相关内容

  • 最后编辑: Else 编辑于2008/09/11 08:57
    Tags: , ,
    代码 程序 编程 | 评论(0) | 引用(0) | 阅读(365)
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]