TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jim Tat
NA
52
47.4k
How to open and close an instance of powerpoint in C#
Sep 22 2016 7:52 AM
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>
Reply
Answers (
5
)
Print more pages rldc report c#
change tableadapter connection string at runtime