2011-02-15 72 views
0

有什么办法可以捕获Outlook 2007中的“发送更新”按钮吗?我在我的IRibbonExtensibily.GetCustomUI()以下:Outlook 2007加载项发送更新

"<customUI xmlns=""http://schemas.microsoft.com/office/2006/01/customui"">" & _ 
"<commands>" & _ 
"<command idMso=""SendItem"" onAction=""SendAction"" />" & _ 
"<command idMso=""SendUpdate"" onAction=""SendAction"" />" & _ 
"</commands>" & _ 
"</customUI>" 

当我使用从预约发送更新按钮,构成了我SendAction()方法不会被调用。它从File菜单和其他位置工作,但不在按钮上。有什么方法可以捕捉这个事件吗?

或...是否有某种原因(物品泄漏或某物),我不赶上它?

更新,我也想使用捕捉到它:

Dim WithEvents updateButton As CommandBarButton 
Set updateButton = Inspector.CommandBars.FindControl(id:=1983, Visible:=False) 

但是,结果还是一样。

回答

0

看来,捕获此按钮的唯一方法是在appointmentitem.send()方法中。这些按钮不是功能区或菜单的一部分,因此不能以这种方式陷入困境。