Word 插件未加载到第二个 Word 文档

发布于 2024-08-03 03:52:16 字数 142 浏览 1 评论 0原文

我在 VS 2008 中编写了一个 Word 插件,非常简单,只添加了一个命令栏和几个按钮。

对于打开的第一个文档,该插件加载并正常工作。

当我打开第二个及后续文档时,插件不会加载。

如果需要,请询问更多信息。很高兴提供。

Ive written a Word addin in VS 2008 thats pretty simple, just adds a commandbar and a couple of buttons.

The addin loads and works fine for the first document that is opened.

When I open a second and subsequent documents, the addin does not load.

Please ask for anymore info if needed. Happy to provide.

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

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

发布评论

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

评论(1

鱼窥荷 2024-08-10 03:52:16

哇,经过几天的研究这个问题,我终于找到了解决方案。

http://www.eggheadcafe.com/forumarchives/officedeveloperVisualBasica/Aug2005/post23498818。 asp

我没有为每个按钮分配一个唯一的标签!

newButton.Tag = Guid.NewGuid().ToString();

瞧!

Wow, after a couple of days working on this issue, I finally found the solution.

http://www.eggheadcafe.com/forumarchives/officedeveloperVisualBasica/Aug2005/post23498818.asp

I wasn't assigning a unique tag to each of my buttons!

newButton.Tag = Guid.NewGuid().ToString();

Voila!

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