是否有MS Word的应用程序URL协议? [英] Is there an Application URL Protocol for MS Word?
问题描述
我正在开发一个javascript前端站点以在浏览器[Chrome]中运行,我想在客户端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 how to article]吗?
My questions is does Office [and Word] create an Application URL Protocol [MSDN how to article] for itself when installing it?
例如,iTunes使用网址'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.
有关<$ c $含义的详细信息c> ofe 或 u
可以在这里
此协议可从Microsoft Office 2010 Service Pack 2开始提供(是的,有服务办公室包也)。
This protocol is available starting Microsoft Office 2010 Service Pack 2 (yes, there are service packs for office also).
这篇关于是否有MS Word的应用程序URL协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!