如何直接在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/ js刷新验证问题 js写的代码,执行的时候发现IE内存出问题,现象很奇怪!!! 提问,大家帮我看下,这种功能要怎么实现? 求助一个简单问题 急~~如何把我在JAVASCRIPT里定义的一个数组保存到REQUEST中~~ javascript中的字符串问题 菜鸟问题,急啊!! IE关闭问题 可不可以打开一个像模态对话框一样的窗口,让他一直在其它窗口的前面?在线等 js如何用不同id的调用同一个函数取得各自不同的值?急急急 有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>