!!下面的代码为什么出错?
<%
set wordApp=createobject("word.application")
set wordDoc=createobject("word.document")
strDocFile=server.mappath("..\sample.doc")
set wordDoc=wordApp.documents.open(strDocFile)
strDocContent=wordDoc.content
response.write strDocContent
wordDoc.close
set wordDoc=nothing
set wordApp=nothing
%>
运行到set wordDoc=createobject("word.document")出错,
这个代码是帖子上拉下来的,是它本生有错,还是我的iis有问题?