Marshal.GetActiveObject("Word.Application") fall in exception
I'm working on a
I have added the
I have wrote a line of code that get an object from the opening instance of
The issue:
When I run the application, it always throw an exception for that line as shown in the attached video
Please does anyone has any idea or solution for this issue ?
Massive thanks in advance <3
.NET Framework console application, I have added the
Microsoft.Office.Interop.Word as a referenceI have wrote a line of code that get an object from the opening instance of
Microsoft Word as following :The issue:
When I run the application, it always throw an exception for that line as shown in the attached video
Please does anyone has any idea or solution for this issue ?
Massive thanks in advance <3