Addin特定于Word的实例 [英] Addin specific to the instance of Word

查看:93
本文介绍了Addin特定于Word的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用VSTO 2005 SE为Word 2003创建了一个工具栏命令栏。工具栏中有一些按钮可以启用和禁用以执行文档中的某些功能。
当创建Word的第一个实例/打开第一个文档时,工具栏可以正常工作。问题是当打开第二个文档时,会创建第二个Word实例。在这种情况下,工具栏停止工作即,按钮既不能被点击,也不能被启用/禁用。第一个实例继续按预期工作。
如何使工具栏像常规Word工具栏一样工作?即,作为Word的不同实例的不同实例?委员会,
Shilpa

解决方案

请参阅<论坛的常见问题解答中的strong>第7项列表

Hi,

I have create a toolbar command bar for Word 2003 using VSTO 2005 SE. The toolbar has some buttons that are enable and disable to perform certain functions in the document.
The toolbar works perfectly when the first instance of Word is created/first document is opened. The problem is when the second document is opened, a second instance of Word is created. In this case, the toolbar stops working ie., the buttons can neither be clicked, nor enabled/disabled. The first instance continues to work as desired.
How do I get the toolbar to work like the regular Word toolbars? i.e., as different instances for different instances of Word?


Regards,
Shilpa

解决方案

Please see item 7 in the forum's FAQ list.


这篇关于Addin特定于Word的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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