如何创建强制 MS Word 在 webdav 服务器上编辑文档的 HTML 链接 [英] How to create a HTML link which forces MS Word to edit document on webdav server

查看:23
本文介绍了如何创建强制 MS Word 在 webdav 服务器上编辑文档的 HTML 链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们假设我有启用 WebDAV 的服务器,在那里我有一堆 Office 文档.我想生成具有文档链接的网页,以便单击该链接将打开 Microsoft Word.Word 会依次从 WebDAV 服务器下载文档,当用户完成编辑文档时,MS Word 会将其上传回来.

Let's suppose that I have WebDAV-enabled server, where I have bunch of Office documents. I'd like to generate webpage which has link to document such that clicking on the link will open Microsoft Word. Word will in turn download document from WebDAV server, and when user finishes editing document, MS Word will upload it back.

我知道 MS Word(和其他 Office 程序)支持编辑存储在 WebDAV 服务器上的文档.我不知道的是如何生成链接,触发 MS Word 自行下载此文档.

I know that MS Word (and other Office programs) support editing of documents stored on WebDAV server. What I don't know, is how to generate link which will trigger MS Word to download this document by itself.

有可能吗?也许使用一些特殊的方案?

Is it possible? Maybe using some special scheme?

推荐答案

据我所知,实现此目的的唯一方法是通过 ActiveX 显式实例化 Word,并将 URL 传递给它以打开.

As far as I recall, the only way to achieve this is to explicitly instantiate Word through ActiveX, and the pass it the URL to open.

这可以在 HTML 页面内完成(其中需要 IE),或者使用外部应用程序,然后需要为新的 mime 类型注册(请参阅 http://greenbytes.de/tech/webdav/rfc4709.html#rfc.section.B.1 例如).

This can be done inside the HTML page (in which it'll need IE), or using an external application that then would need to be registered for a new mime type (see http://greenbytes.de/tech/webdav/rfc4709.html#rfc.section.B.1 for an example).

这篇关于如何创建强制 MS Word 在 webdav 服务器上编辑文档的 HTML 链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆