


MessageBox.Show( " Error initializing sample addin:\r\n" +Įx.Message, " Error", MessageBoxButtons.OK, This simplifies the process of creating folder replicas because you can pick the store. (Click on image for enlarged view.) When you click on Add, the console lists individual public folder stores across the Exchange organization. The Replication tab allows you to manage folder replicas. _CommandBarButtonEvents_ClickEventHandler(myExtractButton_Click) But this isnt the case in Exchange Server 2007. MyExtractButton = (Office.CommandBarButton)Ĭ( 1,missing ,missing ,
#Manage add ins outlook 2007 code
It is the last thing to be called in the class as it unloads.Ĭopy Code private void ThisAddIn_Startup( object sender, System.EventArgs e)Īpplication.ActiveExplorer().CommandBars Shutdown is raised for each of the host items (document or worksheets) when the application domain that your code is loaded in is about to unload. It is the last thing to run in the constructor of the class that your code is running in. Startup is raised after the document is running and all the initialization code in the assembly has been run. All COM add-ins inherit from this interface and must implement each of its five methods. The IDTExensibility2 interface is the core concept behind Office add-ins.Ī COM add-in is an in-process COM server, or ActiveX dynamic link library (DLL), that implements the IDTExensibility2 interface as described in the Microsoft Add-in Designer type library ( Msaddndr.dll). A new feature that was added for Beta2 is the ability to create managed application-level add-ins for Outlook. And, when you close the document, your code is unloaded. When you open the document, your code is loaded and run. VSTO solutions are tied to a document, and the lifetime of the solution is that of the document. Document level solutions are a little different than Word or Excel add-ins, which are application scope. VSTO 2005 enables you to create document level solutions in managed code (C# and VB) for Word and Excel.
