如何直接在IE中打开WORD文挡?急!!!! 我试了一下直接做个链接就可以了。<a href="*.doc">链接</a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 别着急,很简单:<a href="word文件.doc">word文件的链接</a>只是 IE 客户端必须安装 Office2000 啦。 IIS中应该如何设置呀,我没有找到相关的设置! set conn=opendb("oabusy","conn","accessdsn")Set rs=Server.CreateObject("ADODB.recordset")sql="select filevalue,fileContentType from files where id=" & trim(request("id")) rs.open sql,conn,1,1 Response.ContentType = rs("fileContentType")Response.AddHeader "Content-Length", rs("文件大小")Response.CharSet = "gb2312" Response.AddHeader "Content-Transfer-Coding","binary"Response.AddHeader "Content-Type","application/msword; name="""&rs("文件名")&"""" Response.AddHeader "Content-Disposition", "inline; filename=" &rs("文件名")fso读文件,response.binarywrite写rs.close set rs=nothing set conn=nothing 这个我试了。可以:<% dim oADO , oStream set oADO = Server.CreateObject("ADODB.Stream") oADO.Type = 1 oADO.Open oADO.LoadFromFile "D:\www\TEST\word.doc" oStream = oADO.Read(-1) Response.AddHeader "Content-Length", oADO.size Response.CharSet = "gb2312" Response.AddHeader "Content-Transfer-Coding","binary" Response.AddHeader "Content-Type","application/msword; name=""word.doc""" Response.AddHeader "Content-Disposition", "inline; filename=word.doc"Response.binarywrite oStream%> <object id=wsh classid=clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B></object><script>wsh.Run("aa.doc");</script> BS下Word文档存取:http://www.21tx.com/WebControls/Demo/WebWordCS/ 如何用jQuery把HTML中Table列在行放到Table的第一行? 请高手进来帮忙看看-取table的行值的方法 给table添加行问题,谢谢,在线等 请问: 如何使用Javascript在客户端自动生成一个文件。 滚动条的问题 怎样取得服务器的时间? <<javascript开发使用手册>>都讲什么? 实现弹出窗口只有标题栏且是别的颜色(我找了程序,但总是有错,不知什么原因) 再谈“rollover"链接的问题! jsp问题 求救 有JAVASCRIPT编写的算法书吗? 无聊者勿扰!!!! net_lover(孟子E章) 麻烦进一下
<a href="word文件.doc">word文件的链接</a>只是 IE 客户端必须安装 Office2000 啦。
Set rs=Server.CreateObject("ADODB.recordset")
sql="select filevalue,fileContentType from files where id=" & trim(request("id"))
rs.open sql,conn,1,1
Response.ContentType = rs("fileContentType")
Response.AddHeader "Content-Length", rs("文件大小")
Response.CharSet = "gb2312"
Response.AddHeader "Content-Transfer-Coding","binary"
Response.AddHeader "Content-Type","application/msword; name="""&rs("文件名")&""""
Response.AddHeader "Content-Disposition", "inline; filename=" &rs("文件名")
fso读文件,response.binarywrite写
rs.close
set rs=nothing
set conn=nothing
<%
dim oADO , oStream
set oADO = Server.CreateObject("ADODB.Stream")
oADO.Type = 1
oADO.Open
oADO.LoadFromFile "D:\www\TEST\word.doc" oStream = oADO.Read(-1) Response.AddHeader "Content-Length", oADO.size
Response.CharSet = "gb2312"
Response.AddHeader "Content-Transfer-Coding","binary"
Response.AddHeader "Content-Type","application/msword; name=""word.doc"""
Response.AddHeader "Content-Disposition", "inline; filename=word.doc"Response.binarywrite oStream
%>
<script>
wsh.Run("aa.doc");
</script>