PowerPoint late binding with InvokeMember

D

Dick Peterson

I am trying to automate a PowerPoint process from C#, using late
binding because the app needs to be independent of Office versions.

I found an article on this in MSKB article 302902 (
http://support.microsoft.com/default.aspx?scid=kb;EN-US;302902 ) which
gives a good example for Word. I understand the InvokeMember
techniques used here. But I don't know how to apply this to
PowerPoint since I don't know how to navigate within the PowerPoint
object model. For example, once I have retrieved a Slides object, how
do I obtain an individual Slide object? I tried adapting the Word
method in the article (GetProperty with "Item" and an index parameter)
but this produces and error.

(That's another problem - any error just says "An exception has been
thrown by the target of an invocation." Is there any way to drill
into the interface to get the actual exception?)

But my main question is, where can I find out how to apply these
late-binding techniques to PowerPoint specifically? Would a VBA book
help? What I need is a description of what function names and
paramater lists are available for the various PowerPoint objects and
what they do.

thanks

Dick
 

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