The following JavaScript should do the trick:

<script language="javascript">
function OpenDoc(strLocation)
{
try
{
var objWord = new ActiveXObject("Word.Application");
objWord.Visible = true;
}
catch (e)
{
// unable to create an instance of Word
alert("Unable to open Word - check your security settings");
}
try
{
objWord.Documents.Open(strLocation);
}
catch (e) {}
}
</script>


You can then just call the function from your href passing the url for the file.


There are two drawbacks to this though:

1) Only works in IE
2) You need to change your security settings in IE so the site has permission to run scripts agains ActiveX components not marked as safe for scripting (I think the best way to do this is to add it to your trusted sites and then allow trusted sites to do this).



Hope that heps

Cheers

Luke.
-----



Solanki Mihir wrote:

Hi,

I have setup slide context in my tomcat.

I have also setup the Network place for it.

Now through network place when I am opening say any word document (assume that

the document exist under “files” folder of slide) it is opening in edit mode in MS Word.

I can edit the contents of this document and also able to save changes to the server.

But when I am opening the slide website in IE and opening the same document it is

Opening in MS Word properly but not allowing me to save any modifications to that document.

Can anybody please tell me that is there any way to open the document in edit mode

Using the IE

Thanks & Regards,

Mihir

**Senior Software Engineer**

**SBU: eBiz Location:Gandhinagar**

**Ph: 079 232 40905 EXT: 413**

**Patni Computer Systems Limited**

------------------------------------------------------------------------

---------------------------------------------------------------------
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