分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]
<% 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的代碼
Tags: , ,

            object oMissing = Missing.Value;

            Microsoft.Office.Interop.Excel.Application ExcelObj =
                new Microsoft.Office.Interop.Excel.Application();

            Microsoft.Office.Interop.Excel.Workbook WBook;

            Microsoft.Office.Interop.Excel.Worksheet WSheet;

            Microsoft.Office.Interop.Excel.Range Selection;

            WBook = ExcelObj.Workbooks.Open(@"c:\test\1.xlsx",

                oMissing, oMissing, oMissing, oMissing, oMissing,

                oMissing, oMissing, oMissing, oMissing, oMissing,

                oMissing, oMissing, oMissing, oMissing);
Tags: , ,
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]