用于自定义功能区的 Word 2007 加载项 - 功能区在保存的文档中不可见

发布于 2024-10-08 14:17:27 字数 248 浏览 0 评论 0原文

我有一个要求,需要将自定义功能区添加到 Word 2007 文件中,该文件将由某些项目填充。我使用 this 创建了一个加载项,并按 F5 打开包含以下内容的 Word 文件新添加的自定义功能区。但我保存该 Word 文件并再次打开它,它没有新添加的自定义功能区。我确信我在这里遗漏了一些东西。有人能提供一些线索吗?

I have a requirement where I need to have a custom ribbon added to the Word 2007 file which will be populated from some items. I created a add-in using this and pressing F5 opens Word file contains the newly added custom ribbon. But I save that word file and open that again and It does not have that newly added custom ribbon. I am sure I am missing something here.Could anybody throw some light?

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

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

发布评论

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

评论(1

被你宠の有点坏 2024-10-15 14:17:34

我保存该 Word 文件并再次打开它

您是否在从 Visual Studio 运行的 Word 实例之外再次打开它?您的加载项可能仅在您调试项目时可用。

检查注册表中是否存在您的加载项条目:

HKLM\Software\Microsoft\Office\Word\Addins\

如果不存在条目,我发现将 VSTO 外接程序部署到计算机的最简单方法是在 Visual Studio 中为其创建一个安装项目。

I save that word file and open that again

Are you opening it again outside of the Word instance running from Visual Studio? Your add-in might only be available when you're debugging the project.

Check if an entry for your add-in exists in the registry, under:

HKLM\Software\Microsoft\Office\Word\Addins\.

If no entry exists, I've found that the easiest way to deploy a VSTO add-in to your machine is to create a setup project for it in Visual Studio.

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