Override the RequestComAddInAutomationService method in the ThisAddIn class. To expose an object in your VSTO Add-in to other solutions, perform the following steps in your VSTO Add-in:ĭefine a class that you want to expose to other solutions. These include applications that automate an Office application, such as a Windows Forms or console application, and VSTO Add-ins that are loaded in a different process. Other VSTO Add-ins created by using the Office project templates in Visual Studio.ĬOM VSTO Add-ins (that is, VSTO Add-ins that implement the IDTExtensibility2 interface directly).Īny solution that is running in a different process than your VSTO Add-in (these types of solutions are also named out-of-process clients). Visual Basic for Applications (VBA) code in a document that is loaded in the same application process as your VSTO Add-in.ĭocument-level customizations that are loaded in the same application process as your VSTO Add-in. You can expose an object in a VSTO Add-in to the following types of solutions: Types of solutions that can call code in an add-in In another solution, access the object exposed by your VSTO Add-in, and call members of the object. In your VSTO Add-in, expose an object to other solutions. There are two main steps in this process: ![]() For more information, see Features available by Office application and project type. For example, if you have a VSTO Add-in for Microsoft Office Excel that performs calculations on financial data from a Web service, other solutions can perform these calculations by calling into the Excel VSTO Add-in at run time.Īpplies to: The information in this topic applies to VSTO Add-in projects. ![]() This is useful if your VSTO Add-in provides a service that you want to enable other solutions to use. You can expose an object in your VSTO Add-in to other solutions, including other Microsoft Office solutions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |