Invoke the Ribbon Split button of outlook from outlook add-in

萝らか妹 提交于 2019-12-13 01:23:40

问题


I have a custom Ribbon Split button in outlook. I ideally want to invoke the top button of the split button(not the drop down) from my outlook Add-in. To do that I got the control of split button using Redemption and when i try to execute it I am getting IAccessible Error.I am able to invoke any other normal button with this approach. I googled around all things but not able to find the solution. Any help or suggestion will be of great help. below code shows how I got the control of button

Redemption.SafeRibbonControl newControl = cRibbon.Controls.Item("Add With Template");
newControl.Execute();

来源:https://stackoverflow.com/questions/35866487/invoke-the-ribbon-split-button-of-outlook-from-outlook-add-in

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