Question

You see I am trying to edit a file that’s in the WebDAV server, but I am doing this through ASP.NET and C# in a DotNetNuke Website. I saw the code for the Sample Server Browser included with the ITHIT WebDAV SDK, where I saw a functionality similar to the one I require , but its a local Windows Application and it uses Process.Run() to open Word. This process will not work for my case however since that would cause the process to be executed on the server (w3wp.exe process) and not the clients machine. My questions is how would I implement this capability, you can take a look at their Ajax Browser for an example; right click any document and "Edit Document" appears, which causes Word to open up. How can I open a specific word document from the WebDAV server directly into word? Am I going to have to use JavaScript? If So, how can I pass the location of the file as a parameter?

Was it helpful?

Solution

To open a Microsoft Office documents from your web page, you will need to use JavaScript. You will need to program FFWinPlugin in case of Chrome, FireFox and Safari, or SharePoint.OpenDocuments ActiveX in case of Internet Explorer. Note that your server must be a Class 2 WebDAV server.

You can find more information here.

OTHER TIPS

To open document on client side you need javascript e.g.:

<script type="text/javascript">
   window.open('http://www.usability.gov/templates/docs/u-test_plan_template.doc')
</script>

This is probably the way used by Ajax Browser the problem is that then file is downloaded to local computer and when you update it, it is necessary to upload it back again.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top