How to open and close an instance of powerpoint in C#
Hello, I am doing an application in which I launch Office App like Word, PowerPoint etc<br /> 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.<br /><div> Here is what I did for the Word App:</div><div> </div><div><div class="dp-highlighter"><ol start="1" class="dp-c"><li class="alt"><span><span class="keyword">using</span><span> wd = Microsoft.Office.Interop.Word; </span></span></li><li class=""><span> </span></li><li class="alt"><span> wd.Application wdApp = <span class="keyword">new</span><span> wd.Application(); </span></span></li><li class=""><span> wdApp.Visible = <span class="keyword">true</span><span>; </span></span></li><li class="alt"><span> </span></li><li class=""><span> ((wd.ApplicationEvents4_Event)wdApp).Quit += () => { MessageBox.Show(<span class="string">"Exited!"</span><span>); }; <br /></span></span></li></ol></div> </div>