I have an application that produces an word document on the server, and shows the web-link to the user.
When the user clicks this link, the word-document is opened locally on the clients computer.
I use this script to "transport" and open the the document:
<script language = vbscript>
<!--
dim s
dim objword
sub OpenDoc(strLocation)
set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
end sub
-->
</script>
On the web-server I run MSWord 2002 (this is the only one I found information about on Microsoft).
When I act as an client and log on to the web-page and try to open the word document, it works fine as long as I sit on a computer that has MSWord 2002, but when I try to do the same thing from a computer with MSWord 2003 I get this error-message:
"Object reference not set to an instance of an object"
Does anyone have a clue?
When the user clicks this link, the word-document is opened locally on the clients computer.
I use this script to "transport" and open the the document:
<script language = vbscript>
<!--
dim s
dim objword
sub OpenDoc(strLocation)
set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
end sub
-->
</script>
On the web-server I run MSWord 2002 (this is the only one I found information about on Microsoft).
When I act as an client and log on to the web-page and try to open the word document, it works fine as long as I sit on a computer that has MSWord 2002, but when I try to do the same thing from a computer with MSWord 2003 I get this error-message:
"Object reference not set to an instance of an object"
Does anyone have a clue?