Late Binding PPT Events in C#

J

Jon Raynor

I am looking for some sample code on late binding powerpoint events in C#.

For example, here is an early bound event handler for slide show end on a
PowerPoint application object:

_application.SlideShowEnd += new
Microsoft.Office.Interop.PowerPoint.EApplication_SlideShowEndEventHandler(SlideShowEnd);

How would I do this using late binding?

I know how to do late bound properties and methods using
GetType().InvokeMember on anobject. But I haven't been able to find any
documentation on events.

I am using C# .Net 2.0. I've developed a PPT COM AddIn which works fine
with PPT 2003, but I've added a reference to the PPT 11.0 object model. I
want to suppport multiple versions with late binding, but in the main
Connect.cs class I am handling some powerpoint events, so this is a stumbling
point.

Any help would be appreciated. Just looking for some sample code.
Interested in SlideShowEnd, SlideShowNextBuild PresentationSave, NewSlide,
PresentationOpen, PresentationAfterSave.

Thanks,

Jon Raynor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top