asp中读取WORD文档内容 10
为什么显示不出文档内容<%txt=request("wname")myname=request("wname")iftxt<>""thensetmyfile=server...
为什么显示不出文档内容
<%
txt=request("wname")
myname=request("wname")
if txt<>"" then
set myfile=server.CreateObject("Scripting.FileSystemObject")
set mytext=myfile.Opentextfile(server.mapPath(myname),true)
mytext.openline(txt)
counter=0
do while not mytext.AtEndOfStream
counter=counter+1
thisline=mytext.readline
response.write(thisline)&"<br>"
loop
mytext.close
set myfile=nothing
end if
%> 展开
<%
txt=request("wname")
myname=request("wname")
if txt<>"" then
set myfile=server.CreateObject("Scripting.FileSystemObject")
set mytext=myfile.Opentextfile(server.mapPath(myname),true)
mytext.openline(txt)
counter=0
do while not mytext.AtEndOfStream
counter=counter+1
thisline=mytext.readline
response.write(thisline)&"<br>"
loop
mytext.close
set myfile=nothing
end if
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询