In solution has multiple projects. One of them - Word Add-In. From the other (not Add-In) to gain access to Globals.ThisAddIn.Application. How can I do this?
you cant get Globals.ThisAddIn.Application in non Addin project. To get application instance in non addin project you can use
var wordApplication = (Microsoft.Office.Interop.Word.Application)Marshal.GetActiveObject("Word.Application")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With