将 Word 应用程序级插件功能添加到 Word 文档上的 Windows 右键单击​​菜单中

发布于 2024-09-28 17:17:05 字数 341 浏览 0 评论 0原文

选择任何 Word 文档 (.doc|.docx) 并右键单击鼠标,您将看到一个包含常用命令的菜单,例如打开、编辑、新建、打印等...

在 Windows 计算机上,如果您 开发了一个应用程序级 word 2007 AddIn,它可以正确安装在 Windows 计算机上。它有一个功能区,其中包含许多功能/命令,例如 A、B、C 等,并作为功能区上的按钮合并。

有没有办法[VSTO/installer(msi)]将我的Word AddIn(例如B)的特定功能/命令添加到Word文档(.doc|.docx)的Windows右键菜单中)在安装了我的插件的机器上?

任何建议将不胜感激。

On a windows machine if you select any word document (.doc|.docx) and right click your mouse you get a menu with common commands such as Open, Edit, New, Print etc ...

I have developed a Application level word 2007 AddIn which installs correctly on Windows machines. It has a ribbon with many functionality/commands such as A,B,C etc incorporated as buttons on the ribbon.

Is there a way [VSTO/installer(msi)] to add a particular functionality/command of my word AddIn (for eg B) to the Windows right click menu on word documents (.doc|.docx) on a machine where my AddIn is installed?

Any suggestions will be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

铁轨上的流浪者 2024-10-05 17:17:05

您正在谈论 Shell 扩展。这不是你会从你的插件中做的事情。您需要添加注册表项以使用命令行参数运行某些内容,或者您​​需要深入实际编写 Shell 扩展,即由 Windows 资源管理器加载的 dll,以提供这些右键单击菜单项。

找到常见的注册表项。

无论如何,可以在HKEY_CLASSES_ROOT\Word.Document.12\shell

对于 Word 2010

You're talking about a Shell Extension. Not something you'd do from you're addin. You'll need to either add reg entries to run something with a command line parm, or you'll need to dig into actually writing a Shell Extension ie a dll that is loaded by Windows Explorer to provide those right click menu items.

the common reg entries can be found here

HKEY_CLASSES_ROOT\Word.Document.12\shell

For Word 2010 anyway.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文