asp导出
利用asp来导出文件到excel,不需要office组件,如何做?谢谢!能提供个参考的网址。。
http://www.mscto.com/aspnet/2009021435632.html
楼上的,我不需要用owc,达到导出到excel的功能,并且能通过代码来自定义导出的样式的。
在文件头部添加
<%response.ContentType ="application/vnd.ms-excel"%>
<% Response.AddHeader "Content-Disposition", "attachment; filename=文件名"%>
引用
在文件头部添加
<%response.ContentType ="application/vnd.ms-excel"%>
<% Response.AddHeader "Content-Disposition", "attachment; filename=文件名"%>
就达不到可以及定制自己样式的excel文件了。
顶一下
相关问答:
conn.execute("delete from online where DateDiff("&SqlChar&"s"&SqlChar&",lasttime,"&SqlNowString&")>"&OnlineTime&" " ......
A服务器(www.XXX.com)
Response.Cookies("aa") = "bbbbbbb"
Response.Cookies("aa").domain = "XXX.com"
B服务器(www1.XXX.com)
Response.Write Reque ......
我的意思是asp中如何单击某按钮 就继续执行下一段代码
在网页里,先执行一段代码,遇到单击某按钮时就,继续往下执行后面的代码~
asp是服务器端代码,是由请求触发的。
要么就分成2个asp文件, ......
Function listPages(LinkFile)
if not (rs.eof and rs.bof) then
gopage=currentpage
totalpage=n
blockPage=Int((gopage-1)/10)*10+1
If LCase(Request.ServerVariables("HT ......
function mistake(preString)
Dim texts
Dim seed
Dim i,length
prestring = trim(preString)
......