<% 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>
<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>
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
CSS网页布局强制换行和强制不换行
jquery load取的目标页的dom 


2008/09/10 15:53 | by 
