接近前景。 [英] Getting close event of outlook.

查看:77
本文介绍了接近前景。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

       我有addin Expresss关闭活动 

            this.FormsManager = AddinExpress.OL.ADXOlFormsManager.CurrentInstance;

            this.FormsManager.OnInitialize + = new AddinExpress.OL.ADXOlFormsManager.OnComponentInitialize_EventHandler(this.FormsManager_OnInitialize);

            this.FormsManager.Initialize(本);           

            OutlookInspectors = Application.Inspectors;

            OutlookInspectors.NewInspector + = new Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler(OutlookInspectors_NewInspector);

            bool cancel = false;

            Application.ItemSend + = new ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend(OutlookMailItem,cancel));

 但无法关闭它      

解决方案

Hello Jatin,


您可以处理
退出被触发的Application类的事件< span style ="">当Microsoft Outlook开始关闭时。


请注意, as作为提高性能的目标的一部分,Microsoft Office Outlook 2007 Service Pack 2(SP2)和Microsoft Outlook 2010包含一些重要更改,以确保在
用户尝试关闭Outlook时Outlook正常关闭。

Outlook 2010的关机更改
 文章介绍了对Outlook 2010的更改。


以防万一如果启用了快速关闭功能,则可以处理
关闭
在最后一个窗口将要关闭时通知的Explorer / Inspector类事件,因此Outlook进程完成。


参见
Outlook 2010快速关闭功能
以获取更多信息。


       I have the addin Expresss to close the event 
            this.FormsManager = AddinExpress.OL.ADXOlFormsManager.CurrentInstance;
            this.FormsManager.OnInitialize +=new AddinExpress.OL.ADXOlFormsManager.OnComponentInitialize_EventHandler(this.FormsManager_OnInitialize);
            this.FormsManager.Initialize(this);           
            OutlookInspectors = Application.Inspectors;
            OutlookInspectors.NewInspector += new Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler(OutlookInspectors_NewInspector);
           bool cancel =false;
           Application.ItemSend += new ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend(OutlookMailItem, cancel));
  But not able to close it       

解决方案

Hello Jatin,

You can handle the Quit event of the Application class which is fired when Microsoft Outlook begins to close.

Be aware, as part of the goal to improve performance, Microsoft Office Outlook 2007 Service Pack 2 (SP2) and Microsoft Outlook 2010 include some significant changes to ensure that Outlook shuts down properly when the user attempts to close it. The Shutdown Changes for Outlook 2010 article describes the changes to Outlook 2010.

In case if the fast shutdown feature is enabled, you can handle the Close event of the Explorer/Inspector classes to be notified when the last window is going to be closed, so the Outlook process finishes.

See Outlook 2010 Fast Shutdown feature for more information.


这篇关于接近前景。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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