2
Answers

getting null reference error for word add-in in c#

Photo of Jayanthi M

Jayanthi M

10h
36
1

Hi Team,

I have placed only the below line in my test application using VSTO Word Add-in c#. I have refered all the required dll files into my reference. When I run the application I am getting null reference error in the below line. Can anyone help me to fix the issue or I missed anything.

 

        private Microsoft.Office.Interop.Word.Application wordApp = Globals.ThisAddIn.Application;
 

Answers (2)