![]() If Outlook is not running and you only want to start Outlook with the default profile, do not use the Logon method. If Outlook is already running, using this method does not create a new Outlook session or change the current profile to a different one. When users start Outlook a second time, that instance of Outlook runs within the same Outlook process, does not create a new process, and uses the same profile. This is because only one Outlook process can run at a time, and that Outlook process uses only one profile and supports only one MAPI session. Use the Logon method only to log on to a specific profile when Outlook is not already running. ![]() Second, there is no need to use the Logon method. First, there is no need to initialize the Application instance object twice in the code: oOutlook = new Outlook.Application() Īnd oOutlook = Marshal.GetActiveObject("Outlook.Application") as Outlook.Application ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |