Click here to Skip to main content
15,881,836 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a VSTO addin which I want to invoke from a C# EXE. thisaddin.designer.cs file has a constructor as below.

public ThisAddIn(global::Microsoft.Office.Tools.Word.ApplicationFactory factory, global::System.IServiceProvider serviceProvider) : 
                base(factory, serviceProvider, "AddIn", "ThisAddIn") {
            Globals.Factory = factory;
        }


I have added the reference of Addin to my C# project and tried the below. But, not sure what arguments to pass.

MTMWordAddIn.ThisAddIn addin = new MTMWordAddIn.ThisAddIn(null, null);


Kindly suggest.
Thanks.
Posted
Comments
ZurdoDev 12-Mar-14 21:31pm    
The documentation for VSTO likely explains it.
Guru16 12-Mar-14 23:13pm    
I haven't seen any explanation for this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900