Hi,

I don't have my code to hand; however, you need to have a vbscipt (or javascript) function something like the following:

Sub openDocument()
����Set Word = CreateObject("Word.Application")
����Word.Visible = TRUE
����Word.Documents.Open("http://my-slide-server/files/my-file.doc";)
End Sub

which you need to call in a way something like:

<a href="javascript:openDocument()">open in word</a>


What this does is it creates an instance of Microsoft Word and then tells it to open your document from the URL provided.


There's a bit of a snag with it though in that you need to edit your security settings to allow scripting ActiveX components that are not marked as safe for scripting (it's an option in the tools/security settings in IE - I don't have a PC to hand to find what the option is). I think the best way to do this is to add your webdav server to the list of trusted sites (you may need to un-check the option that only allows you to add secure sites to the list) and then make sure the options for trusted sites allow scripting of non-safe ActiveX components.

Also, this only works in IE.


Hope that helps, I'll be back in work on Tuesday if you need more details.


Cheers

Luke.
-----



On 30 May 2004, at 01:11, Simone Gianni wrote:

Luke Noel-Storr wrote:

If you just open via a link then it doesn't open it in word as a document from webdav, it just opens it as it would any other word document linked to from a website (ie: it downloads a temp copy and then opens that read only in Word).

You can use vb/javascript to get it to open in word as a webdav document if required (this seems to be the only way). I can post some sample code if you like.

Hi Luke,
I'm very intrested in this. Since webdav uses the common HTTP URLs there seems to be no standard way to tell a software that i'm referring to a webdav server and not a simple http one. In future, maybe, every software will consider an http url as a webdav one, and try an OPTION or directly a PUT or a LOCK. In the meanwhile, how do i tell MS-WORD to open a file and consider it webdav? If you have vb or javascript or a pointer to somewhere could you please post it?


Thanks, ciao,

Simone Gianni


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to