MS Word 是否有应用程序 URL 协议? [英] Is there an Application URL Protocol for MS Word?

查看:29
本文介绍了MS Word 是否有应用程序 URL 协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个在浏览器 [Chrome] 中运行的 javascript 前端站点,我想在客户端 PC 上启动 Word,其中包含已在 Word 中为他们在他们的 PC 上设置的选定宏.

I'm working on a javascript front end site to run in the browser [Chrome], and I'd like to launch Word on the clients PC with their selected macros that have already been setup in Word for them on their pc.

我的问题是 Office [和 Word] 在安装时是否会为自己创建一个应用程序 URL 协议 [MSDN 如何文章]?

My questions is does Office [and Word] create an Application URL Protocol [MSDN how to article] for itself when installing it?

例如,iTunes 会执行此操作,其 URL 为itmss://itunes.apple.com/us/app/123213213?mt=8",如果用户已安装 iTunes,则会提示他们打开它.

For example, iTunes does this, with the url 'itmss://itunes.apple.com/us/app/123213213?mt=8' which, if the user has installed iTunes, will prompt them to open it.

是否有与 itmss 等效的 Word 协议?我可以将宏名称作为参数传递给它吗?

Is there a Word equivalent protocol to itmss? Can I pass the macro names to it as parameters?

如果没有等效的协议,有谁知道我如何实现类似的目标?

If there not an equivalent protocol, does anyone know how I might achieve something similar?

推荐答案

您可以尝试按如下方式编写链接:

You could try to write your link as follows:

ms-word:ofe|u|http://example.com/myTestDocument.docx

请注意,这很可能需要您运行 WEBDAV 服务器,该服务器能够解释此类请求.

Note that this will most likely require you to have a WEBDAV server running, that is capable of interpreting such requests.

有关ofeu 的含义的详细信息可以在这里

The details about what is the meaning of ofe or u can be found in here

此协议从 Microsoft Office 2010 Service Pack 2 开始可用(是的,也有适用于 Office 的 Service Pack).

This protocol is available starting Microsoft Office 2010 Service Pack 2 (yes, there are service packs for office also).

这篇关于MS Word 是否有应用程序 URL 协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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