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

查看:631
本文介绍了如何创建强制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),或者使用外部应用程序需要注册一个新的哑剧类型(参见 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天全站免登陆