conn.open application("connstring")
set rs=server.createobject("Adodb.recordset")
sql="select * from xxloginteachers order">

利用ASP生成EXECL文档

80酷酷网    80kuku.com

  <%
set conn=server.createobject("adodb.connection")
conn.open application("connstring")
set rs=server.createobject("Adodb.recordset")
sql="select * from xxloginteachers order by jsid desc"
rs.open sql,conn
do while not rs.eof
msg=msg & rs("jsid") & chr(9) & rs("jsxm") & vbcrlf
rs.movenext
loop
set f=server.createobject("scripting.filesystemobject")
set myfile=f.createtextfile("d:\xmllover.xls",true)
myfile.close
%>
已生成xmllover.xls!!!!












分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: