未调用IRibbonExtensibility GetCustomUI [英] IRibbonExtensibility GetCustomUI not called

查看:166
本文介绍了未调用IRibbonExtensibility GetCustomUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Outlook开发一个共享加载项.

I'm developing a shared add-in for Outlook.

我的一位客户的计算机出现问题,他在主窗口功能区中看不到我的加载项按钮/ui.

One of my customers is experiencing trouble on his machine, he does not see my add-in buttons/ui in the main window ribbon.

浏览他的环境和我的日志后,我注意到在他的环境中未调用接口IRibbonExtensibility的函数"GetCustomUI".

After exploring his environment and my logs I noticed that the function "GetCustomUI" of interface IRibbonExtensibility is not being called in his environment.

我不确定导致不同行为的原因是什么,为什么Outlook不在客户计算机上调用GetCustomUI?

I'm not sure what can be the cause for the different behavior, why doesn't Outlook call the GetCustomUI on the customer machine?

还-我可以自己发起对此方法的调用吗?还是刷新功能区,以便它将调用GetCustomUI?

Also - Is it possible to initiate a call to this method by myself? or maybe refresh the ribbon so it will call GetCustomUI?

如果有人有想法,请帮助.

If anyone has an idea, please help.

推荐答案

我遇到了同样的问题.似乎实现IRibbonExtensibility的类应使用ComVisible(true)属性定义.像这样:

I had same problem. It seems the class implementing IRibbonExtensibility should be defined with ComVisible(true) attribute. Like this:

[ComVisible(true)]
public class Ribbon : IRibbonExtensibility {
...
}

这篇关于未调用IRibbonExtensibility GetCustomUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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