W
wjousts
I'm trying to write an application that will allow an external device to be
synchronized with a PowerPoint presentation. So I wrote a very simple Windows
Forms application in C# that will load a PowerPoint presentation and get a
list of the slides. It then allows the user to hook each slide to an event on
the external device with the objective being that when that slide appears,
the external device should do a certain action. I'm using the office XP
primary interop assemblies from Microsoft and all of this works fine up to
this point.
Now I have a button that starts the actual presentation. My program will
handle the SlideShowNextSlide, SlideShowEnd and PresentationClose events
(from PowerPoint) and everything works great. My handler is triggered when
the slide changes and based on which slide is displayed, it makes the
external device do something.
The problem occurs after the presentation ends and I then try and restart
it. At this point when I get to the SlideShowSettings.Run() method I get a
COMException with the message "Presentation (unknown member) : Object does
not exist."
Does anybody have any idea what the problem here might be? I'm assuming that
something needs to be cleaned up on exit, but I've closed the presentation
with the Close() method and even tried reinitializing a whole new
PowerPoint.Application and PowerPoint.Presentation, but it just doesn't work.
synchronized with a PowerPoint presentation. So I wrote a very simple Windows
Forms application in C# that will load a PowerPoint presentation and get a
list of the slides. It then allows the user to hook each slide to an event on
the external device with the objective being that when that slide appears,
the external device should do a certain action. I'm using the office XP
primary interop assemblies from Microsoft and all of this works fine up to
this point.
Now I have a button that starts the actual presentation. My program will
handle the SlideShowNextSlide, SlideShowEnd and PresentationClose events
(from PowerPoint) and everything works great. My handler is triggered when
the slide changes and based on which slide is displayed, it makes the
external device do something.
The problem occurs after the presentation ends and I then try and restart
it. At this point when I get to the SlideShowSettings.Run() method I get a
COMException with the message "Presentation (unknown member) : Object does
not exist."
Does anybody have any idea what the problem here might be? I'm assuming that
something needs to be cleaned up on exit, but I've closed the presentation
with the Close() method and even tried reinitializing a whole new
PowerPoint.Application and PowerPoint.Presentation, but it just doesn't work.