The project wizard creates and opens a new solution in Visual Studio. You are required to unregister your project before using another strong name.Ĭhoose Generate new or specify an existing. If, later on, you need to use a strong name key file, specify its name on the Signing tab of your project properties If you are in doubt, choose Generate new. If you don't have a specific strong name key file, choose Generate new. The wizard allows specifying a strong name file it is used to uniquely identify your add-in assembly. Select the Office applications you want to support by your add-in and click Next. to access the object model of the Office application loading your add-on, see Step 6.add a property to the add-in module the property name reflects the name of the chosen Office application you will use that property.set up the SupportedApp property of the add-in module.add an assembly reference to the project.copy the corresponding interop assembly to the Interops folder of your project folder,.
For every chosen application, the project You can choose one or more Microsoft Office applications in the above window.
Word, Excel and PowerPoint, we are selecting these three apps. Since we want our plugin to work in Microsoft The wizard allows creating add-in projects targeting several Office applications. If you need background information, seeĬhoose your programming language and the minimum Office version that you want to support and click Next. If you are in doubt,Ĭhoose Microsoft Office 2000 as the minimum supported Office version. Later on youĬan replace interop assemblies and reference them in your project. We are going to chooseĬhoosing a particular Office version will add corresponding interop assemblies to the project. Programming language (C#, VB.NET or C++) and specifying the oldest Office version your plugin needs to support. This starts the COM Add-in project wizard. In Visual Studio, open the New Project dialog and navigate to the Extensibility folder.Ĭhoose Add-in Express COM Add-in and click OK. Run Visual Studio via the Run as Administrator command. Make sure that you have administrative permissions before running Visual Studio. Accordingly, RegisterForAllUsers =įalse means writing to HKCU (=for the current user). Registering forĪll users means creating registry entries in HKLM and that means the user registering a per-machine plug-in must have administrative permissions. Generates a per-user project your add-in is per-machine if the addin module has ADXAddinModule.RegisterForAllUsers = True. Per-user and per-machine COM add-insĪ COM add-in can be registered either for the current user (the user running the installer) or for all users on the machine. Modify an email when it is being sent it can cancel saving an Excel workbook or it can check if a Word document or selected text meets some conditions. In a COM add-in targeting Outlook, you can add custom option pages to the Tools | Options and Folder Properties dialogs.Ī COM add-in also handles events and calls properties and methods provided by the object model of the host application. A COM add-in supporting Outlook, Excel, Word or PowerPoint can show advanced task In a Word document and perform some actions on the selected objects. Say, a COM add-in can show a command bar or Ribbon button to process selected Outlook emails, Excel cells, or paragraphs COM add-ins is the only way to add new or re-use built-in UI elements such as commandīar controls and Ribbon controls. IDTExtensibility2 interface (it is a COM interface, of course). COM add-ins have been around since Office 2000 when Microsoft allowed Office applications to extend their features with COM DLLs supporting the