Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VBScript can not CreateObject("Word.Application")

224 views
Skip to first unread message

Robert Wane

unread,
Nov 25, 1999, 3:00:00 AM11/25/99
to
I have a VBscript script in WEB server(IIS4.0) as following:
<html>
.
.
<body>
<%
set ObjWord = CreateObject("Word.Application")
.
.
%>
</body>
</html>

But when "click" it, the Explorer said:
ActiveX component cann't create object :'CreateObject'.
What is the problem? Please help me,Thank you.

Michael Harris

unread,
Nov 25, 1999, 3:00:00 AM11/25/99
to
Is Word installed on the server? 
 
Assuming that it is, is the user account that the asp is running under IUSR_machinename or an authenticated account. 
 
Does this account have NT read/execute access to the ...\Office folder (and all of its files and subfolders)?

--
Michael Harris
 

 
Robert Wane <rober...@hotmail.com> wrote in message news:#ANoU8yN$GA.250@cppssbbsa05...

Robert Wane

unread,
Nov 26, 1999, 3:00:00 AM11/26/99
to
I have a word file wj.doc and it contains a table, my purpose is as
following:

<%
set objword = CreateObject('Word.Application')

' the following script does not work, It always tell me
' It can not open the file
objword.Documents.Open "http://myserver/mj.doc"

objword.Visible = true
set ObjCell = objword.Documents(1).Tables(1).Rows(2).Cells(2)
ObjCell.Range.Text = "Something I select from database using ADO"
%>

If the script is executed in WEB Server, First I must install Office in
WEB Server. Then how can I let the Web Server know the
Object("Word.Application") as in-the-process object ? and If the client does
not intall Office, then what is the result of script "objword.Visible =
true".
If the script is executed in client's Internet Explorer, then I can not
change the Cells' text


Michael Harris wrote in message ...

Robert Wane

unread,
Nov 26, 1999, 3:00:00 AM11/26/99
to
I have a word file wj.doc and it contains a table, my purpose is as
following:

<%
set objword = CreateObject('Word.Application')

' the following script does not work, It always tell me
' It can not open the file
objword.Documents.Open "http://myserver/mj.doc"

objword.Visible = true
set ObjCell = objword.Documents(1).Tables(1).Rows(2).Cells(2)
ObjCell.Range.Text = "Something I select from database using ADO"
%>

If the script is executed in WEB Server, First I must install Office in
WEB Server. Then how can I let the Web Server know the
Object("Word.Application") as in-the-process object ? and If the client does
not intall Office, then what is the result of script "objword.Visible =
true".
If the script is executed in client's Internet Explorer, then I can not

change the Cells' text because the text is fetched from the sever-side
database using ADO.
Please help, thanks a lot.

0 new messages