Outlook 2007 加载项发送更新
有什么方法可以捕获 Outlook 2007 中的“发送更新”按钮吗?我的 IRibbonExtensibily.GetCustomUI() 中有以下内容:
"<customUI xmlns=""http://schemas.microsoft.com/office/2006/01/customui"">" & _
"<commands>" & _
"<command idMso=""SendItem"" onAction=""SendAction"" />" & _
"<command idMso=""SendUpdate"" onAction=""SendAction"" />" & _
"</commands>" & _
"</customUI>"
当我使用约会表单中的“发送更新”按钮时,我的 SendAction() 方法永远不会被调用。它可以在“文件”菜单和其他位置运行,但不能在按钮上运行。有什么办法可以捕捉到这个事件吗?
或者...是否有某种原因(物品泄漏或其他原因)我没有抓住它?
更新,我还尝试使用以下方法捕获它:
Dim WithEvents updateButton As CommandBarButton
Set updateButton = Inspector.CommandBars.FindControl(id:=1983, Visible:=False)
但是,结果仍然相同。
Is there any way to trap the Send Update button in Outlook 2007? I have the following in my IRibbonExtensibily.GetCustomUI():
"<customUI xmlns=""http://schemas.microsoft.com/office/2006/01/customui"">" & _
"<commands>" & _
"<command idMso=""SendItem"" onAction=""SendAction"" />" & _
"<command idMso=""SendUpdate"" onAction=""SendAction"" />" & _
"</commands>" & _
"</customUI>"
When I use the Send Update button from the appointment form my SendAction() method is never called. It works from the File menu and other locations but, not on the button. Is there any way to capture this event?
Or...is there some reason (Item leak or something) that I am not catching it?
Update, I'm also trying to capture it using:
Dim WithEvents updateButton As CommandBarButton
Set updateButton = Inspector.CommandBars.FindControl(id:=1983, Visible:=False)
But, the results are still the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来捕获此按钮的唯一方法是在 AppointmentItem.send() 方法中。这些按钮不是功能区或菜单的一部分,因此不能以这种方式陷入困境。
It appears that the only way to capture this button is in the appointmentitem.send() method. The buttons aren't part of the ribbon or menus so can't be trapped that way.