Outlook 对象模型 - 连接到对话清理功能
Outlook 2010 有一项名为对话清理。此功能是使用对话标头 Outlook 对象模型实现的。
我想挂接此调用并在触发时执行操作,但我不知道如何捕获它/挂接它。有人知道这是否可能吗?如果不是,您知道有什么解决办法吗?我尝试在执行“对话清理”时使用 Outlook间谍查看事件日志,但没有成功(没有记录任何内容)...是否有办法查看对 Outlook 事件的更深入的跟踪?
Outlook 2010 has a feature called Convesation Cleanup. This feature is implemented using the Conversation Header Outlook Object Model.
I would like to hook to this call and perform an action when triggered, yet I can't figure out how to catch it/hook on to it. Is anyone aware if this is possible? If its not, are you aware of any way around it? I have tried using outlook spy to view the event log when executing 'conversation cleanup' with no luck (nothing logged)... is there anyway of viewing deeper tracing of outlook events?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明非常简单。第一步是获取要覆盖的所需按钮的
idMso
。 Microsoft 提供 Office 套件的所有控件 ID 的列表,但是我发现更快、更用户友好的方式来获取idMso。所需的命令 - idMso 显示在括号中
一旦我们获得了所需的 id,我们就可以通过添加一组命令来覆盖按钮的 onAction/Enable 设置来编辑 Ribbon.xml。请参阅下面的示例;
最后,我们在 Ribbon.vb 上创建所需的函数,按下按钮后将执行该函数。
我强烈建议您观看 8 分钟的 MSDN 视频,其中介绍了步骤上面已经解释得很好了。
It turns out to be quite simple. The initial step is to obtain the
idMso
of the desired button to override. Microsoft provides a list of all the control ids for the Office suite however I found faster and more user friendly way of obtaining the idMso.desired command - idMso is displayed in brackets
Once we have the desired ids, we edit the Ribbon.xml by adding a set of commands to override the onAction/Enable settings of the button. See example bellow;
Last, we create the desired function on the Ribbon.vb which will be executed once the button is pressed.
I strongly suggest that you watch the 8 minute MSDN video where the steps above have been very well explained.