So, I did for the Word App but now I am doing for the Powerpoint App but I don't know how to put an event on the exit of an instance of Powerpoint and also create an instance of Powerpoint.
Here is what I did for the Word App:
- using wd = Microsoft.Office.Interop.Word;
- wd.Application wdApp = new wd.Application();
- wdApp.Visible = true;
- ((wd.ApplicationEvents4_Event)wdApp).Quit += () => { MessageBox.Show("Exited!"); };
Jim TatPosted Sep 23, 2016, 11:33 AM
Tejas TrivediPosted Sep 22, 2016, 11:39 PM
Jim TatPosted Sep 22, 2016, 12:44 PM
Ramesh PalaniappanPosted Sep 22, 2016, 11:37 AM
Tejas TrivediPosted Sep 22, 2016, 11:30 AM
app.PresentationClose+=() =>{};