请问如何读取一个DOC文件(是一个单独的文件)的内容,并显示在网页上???

dx 2003-11-25 10:10:34
不用直接链接DOC文件的方法

还有什么别的方法嘛?
...全文
52 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dx 2003-11-26
  • 打赏
  • 举报
回复
能不能将文档内容显示在网页的某个位置???
suhuoqiang 2003-11-25
  • 打赏
  • 举报
回复
可以用WORD。APPLICATION对象来控制啊

hrong 2003-11-25
  • 打赏
  • 举报
回复
Response.AddHeader "Content-Disposition", "filename=PutYourFileNameHere.doc")
Response.ContentType="application/octet-stream"
Response.BinaryWrite YourDataHere
hrong 2003-11-25
  • 打赏
  • 举报
回复
Dim adTypeBinary
adTypeBinary = 1
Dim oStream
set oStream = server.createobject("ADODB.Stream")
oStream.Open
oStream.Type = adTypeBinary
oStream.LoadFromFile "c:\PutYourFileNameHere.doc"
YourDataHere= oStream.read 50 '!!!!!!!!!!
oStream.Close
set oStream=nothing

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧