利用ASP生成EXECL文档
发布时间:2006-10-14 2:58:02   收集提供:gaoqian
<%
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!!!!

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50