• ASP导出Excel


    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equtv="Content-Type" content="text/html; charset=gb2312" />
    </head>
    <%
        Response.ContentType = "application/vnd.ms-excel"
        Response.AddHeader "Content-Disposition", "attachment; filename=IO_123.xls"
    
    
    
        Response.Write "   <div align=""center""><font size=""5"">1</font></div> "
        Response.Write "<table border=""1"" bordercolor=""#999999"" style=""border-collapse: collapse"">"
        Response.Write "<tr bgcolor=""#f1f3f5"">" & vbCrlf
        Response.Write "    <td align=""center"">2</td>" & vbCrlf
        Response.Write "    <td align=""center"">3</td>" & vbCrlf
        Response.Write "    <td align=""center"">4</td>" & vbCrlf
        Response.Write "    <td align=""center"">5</td>" & vbCrlf
        Response.Write "    <td align=""center"">6</td>" & vbCrlf
        Response.Write "    <td align=""center"">7</td>" & vbCrlf
        Response.Write "    <td align=""center"">8</td>" & vbCrlf
        Response.Write "</tr>" & vbCrlf
     
    
    %>
    </html>
  • 相关阅读:
    apply()和call()的区别
    强制类型转换
    浮动理解
    清除浮动的方式
    五大主流浏览器及四大内核
    CSS引入方式
    js构建类的方法
    web前端与后端的理解区分
    Java的API及Object
    面向对象之this关键字
  • 原文地址:https://www.cnblogs.com/wowchky/p/3051675.html
Copyright © 2020-2023  润新知