Close Office applications (Word, Excel, Outlook) before installing the 2007 Office add-in

How to close any running Office 2007 application, such as Word, Excel, Outlook, before installing the 2007 Office add-in in a Visual Studio 2008 installation project?

Thanks! Martin

+4
source share
1 answer

See here for sample code on how to connect to a running instance of Excel, allowing you to manipulate it (including terminating the instance). See here for an example of the RunningObjectTable retrieval code used to retrieve all instances of the specified application.

+2
source

Source: https://habr.com/ru/post/1305216/


All Articles