1. 程式人生 > >Web應用匯出Excel報表的簡單實現(HTML)

Web應用匯出Excel報表的簡單實現(HTML)

<%@ page contentType="text/html; charset=GBK" %>
<% response.setContentType("application/vnd.ms-excel;charset=GBK"); %>
<HTML>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<head><title>Test</title></head>
<body>
<TABLE borderColor=#111111 cellSpacing=0 cellPadding=2 width=1200 align=center border=1>
  <TR>
    <TD align=middle width="10%" height=20 rowSpan=2>專案 </TD>
    <TD align=middle width="2%" height=20 rowSpan=2>計量單位 </TD>
    <TD align=middle width="4%" height=20>滿期賠付率 </TD>
  </TR>
</TABLE>
</body>
</HTML>