首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

ASP生成Excel表格

整理日期:2008年02月16日 【字体:

<%dim excelstring
dim excelstr
dim excelstr2
dim head
excelstring = ""
head = "Sn" & "," & "Reason" & "," & "Empid" & "," & "Empname" & "," & "Ext" & "," & "Depname"
excel="creat"
If excel<>"" Then
   Set rs2 = Server.CreateObject ("ADODB.Recordset")
   sql2 = "Select * from value_table "
   rs2.open sql2,conn,1,3
   do while not rs2.eof
   excelstr =" " & rs2(0) & """,""" & rs2(1) & """,""" & rs2(2) & """,""" & rs2(3) & """,""" & rs2(4) & """,""" & rs2(5) & """"
   excelstr2 = excelstr2 & Chr(13) & excelstr
   rs2.movenext

伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-02/1203140138.html
   loop
Tags:
ASP生成Excel表格
'http://www.etoow.com/html/2008-02/1203140138.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved