Using Office Web Apps, Can you open a document via webdav?

左心房为你撑大大i 提交于 2019-12-01 08:57:14

问题


We're in the process of converting a legacy desktop application into a web enabled equivalent.

However one feature is causing difficulty, editing MS Word documents.

Current proposed solution is publishing the DOC and DOCX files via WebDAV and using a custom ActiveX component to launch WinWord and pointing it at a file via a URL.

This works but it's limited in scope and the worlds moved on since it was conceived.

Is is possible to use the new Office Web Apps to do this completely in-browser?

So, still publish DOC files via WebDAV, but only to a web server hosting the Office Web Apps and redirecting the user to a URL rather than launching a local windows exe via activex.

Can you do this with the new Office Web Apps? Where is the documentation on how to achieve this?


回答1:


Yes, you can launch editing of MS Office documents from a web browser, using the sharepoint dll available in IE:

Eg

Set EditDocumentButton = CreateObject("SharePoint.OpenDocuments.3")
strDocument = 'http://localhost:8080' + strDocument; 
EditDocumentButton.EditDocument(strDocument)

If your server is running java you can use Milton (http://milton.io) to integrate directly into your business app and edit the document in place.



来源:https://stackoverflow.com/questions/17696309/using-office-web-apps-can-you-open-a-document-via-webdav

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!