I have a web application which stores the links to Word documents and displays them on a web page. The expected behaviour is that when a document link is selected, Word fires off and loads the document, the client edits the document and then hits save which then stores the document back on the server. The problem at the moment is that the document in Word is Read-Only which is not what is required.
Here is the snippet of code I'm using:
<script language="VBScript">
Sub vbLoadWord(sFileName)
'copy word document from server to local PC
set objWrd = createobject("word.application"
objWrd.Documents.Open sFilename,true,false
objWrd.visible=true
set wordobj=nothing
End Sub
</script>
As you can see, it should load the document as read/write.
Other things to note: The subdirectory holding the files has full priveleges for the iusr_<server> account. Also I know that I could create a share and access the files that way but then everyone has access to look at all of the documents which is not an option.
Thanks in advance for any help given.
Cheers,
Ian
Here is the snippet of code I'm using:
<script language="VBScript">
Sub vbLoadWord(sFileName)
'copy word document from server to local PC
set objWrd = createobject("word.application"
objWrd.Documents.Open sFilename,true,false
objWrd.visible=true
set wordobj=nothing
End Sub
</script>
As you can see, it should load the document as read/write.
Other things to note: The subdirectory holding the files has full priveleges for the iusr_<server> account. Also I know that I could create a share and access the files that way but then everyone has access to look at all of the documents which is not an option.
Thanks in advance for any help given.
Cheers,
Ian