MS Word opens documents hosted on WebDav share read-only on Windows Vista and 7 but only if no other webdav connections are open
Asked Answered
H

0

3

We have a WebDav server with some Word documents on it. (We are using PHP's HTTP_WebDAV_Server but get the same issue on tests with Apache mod_dav - both use digest authentication, basic auth doesn't work on Vista or later)

We have a web page that opens the word documents using javascript like:

Doc = new ActiveXObject("Sharepoint.OpenDocuments.3");
Doc.EditDocument(url, 'Word.Document');

which causes word to connect to the webdav server and open the document, bypassing IE and most of windows built in WebDav client. On Windows XP, this works perfectly, and (after prompting you to log in) allows you to edit the word document and save it back to the server. On Windows 7 and Windows Vista, this usually opens the document read only, but not in all cases.

After quite a bit of trial and error, we found that it worked (i.e. opened read/write) if Explorer happened to be already connected to a WebDav server. Note that this works with any Webdav server, not neccesarily the one with the document that you are trying to edit.

So other than telling our users to change settings on their machine, is there anything we can do in the javascript sharepoint call, or on the WebDav server that will fix this issue.

We are using MS Word 2007.

Ps. We have the same problem when launching Word from an HTA file version of our system, with javascript like:

wordApp = new ActiveXObject("Word.application");
wordApp.Visible = true;
doc = wordApp.Documents.Open(url);

Pps. Sorry if you think this question should be on Serverfault (or even SuperUser). I couldn't decide, but because we are programming the WebDav server ourself (in PHP) and I have more rep on this site than the others, I decided to post it here :-)

Higgledypiggledy answered 8/6, 2010 at 16:49 Comment(3)
"basic auth doesn't work on Vista or later" -- it works, but only via SSL. We use basic auth for webdav since clients had various problems with nonce expiration in combination with hibernation/sleep.Bigamist
Were you able to get any further with this? I am looking at a similar issue.Import
@ErickT: The problems went away when people upgraded Office to 2010. We did put a hack into the javascript of the .hta version to try and make it force another webdav connection, and that helped. I'm am no longer working at the company that needed this, so I can't remember what else we did.Higgledypiggledy

© 2022 - 2024 — McMap. All rights reserved.