COMAddIns how to turn them on/off programmatically in Office Word 2003

纵饮孤独 提交于 2019-12-24 06:42:36

问题


I need to be able to turn off a COM add-in in Office Word 2003 but still keep it in the COMAddIn list (just not enabled).

I have found the COMAddIn.Connect flag and I set it to false to try and turn if off but it seems to completely remove it from Office Word and I have to re-install the program to get it back again (seems to turn off the registry keys).

So My question is how do you turn off an Office Word 2003 COMAddIn without completely removing it from Word itself?

Also note that I'm using c#

Thanks


回答1:


I figured it out, You want to loop through the list in your CommandBar property and set the visible to false for which ever add-ins you want to be turned off. you set the visible to true to turn them on.



来源:https://stackoverflow.com/questions/10817452/comaddins-how-to-turn-them-on-off-programmatically-in-office-word-2003

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!