Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word & Read-Write access via IIS

Status
Not open for further replies.

nisits

Programmer
Jan 22, 2003
2
AU
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=&quot;VBScript&quot;>
Sub vbLoadWord(sFileName)
'copy word document from server to local PC
set objWrd = createobject(&quot;word.application&quot;)
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
 
Thank you for taking time out to reply browolf. Yes I got to the stage where I gave total permissions to everyone for the directory where the Word files are stored. This also included iusr_servername.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top