COM加载项不会在Word 2007中消失 [英] COM Add-in not going away in word 2007

查看:166
本文介绍了COM加载项不会在Word 2007中消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此我得到了两个不同的COM插件,一个用于单词2k3,另一个用于2k7.单词2k3每次都像一个超级按钮一样工作,没有问题等...但是现在当我打开单词2k7时,来自2k3的按钮出现在我的2k7功能区中.即使在禁用插件或清理项目后,这种情况仍然会发生……我已经尝试了所有方法,包括删除2k3插件的所有dll,但问题仍然存在...

So ive got two different COM addins, one for word 2k3 and one for 2k7. word 2k3 works like a charm everytime, no issues etc...but now when I open word 2k7, the buttons from 2k3 appear in my 2k7 ribbon. This still happens even after I disable my addin or clean my project...i've tried everything, including deleting all dlls for my 2k3 addin but the problem still persists...

关于什么是问题的任何建议?

any suggestions on what the problem is?

欢呼

推荐答案

如果要在除normal.dot之外的模板中配置这些按钮,安装时它们将自动消失".

If you make a point of configuring those buttons in a template OTHER than normal.dot, they will automatically "go away" when you install.

通常,对Normal.dot进行更改是一种不好的做法,但是许多人没有意识到,除非您在创建自己的按钮和工具栏之前先在字词中设置"CustomizationContext"属性,否则这就是您所需要的.这样做,修改normal.dot,而这些更改将在您卸载插件后仍然存在.

It's generally considered bad practice to make changes to Normal.dot, but many people don't realize that unless you set the "CustomizationContext" property in word before creating you're own buttons and toolbars, that's precisely what you're doing, modifying normal.dot, and those changes WILL persist after you've uninstalled your addin.

这篇关于COM加载项不会在Word 2007中消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆