将 Word 应用程序级插件功能添加到 Word 文档上的 Windows 右键单击菜单中
选择任何 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在谈论 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.