But when "click" it, the Explorer said:
ActiveX component cann't create object :'CreateObject'.
What is the problem? Please help me,Thank you.
Robert Wane <rober...@hotmail.com> wrote in message news:#ANoU8yN$GA.250@cppssbbsa05...
<%
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 ...
<%
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.