Identifying the end of a show

  • Thread starter Thread starter kalevet
  • Start date Start date
K

kalevet

Hi all,

I'm working at my spare time on a project that involves the use of
PowerPoint from within another application, in order to create and run
presentations with dynamic content. PP is handled using automation. The
development tool I use, PowerBuilder, support automation only partially
- capturing events can only be done using a special extension method
which I'm not very familiar with.

What I'm looking for is a way to identify the end of a show. Since this
is the only event I need I thought about having some VBA code send a
certain message to a given window at the end of the show. My first
question is, than - can this be done?

If so, it means I should supply the user with a presentation that
contains that VBA. A better option, though, would be to add the VBA
myself at run time. I can edit the presentation's text, but I don't
know if the VBA can be added as well. My second question is, then - can
it?

And last question - I'm neither a PP nor a VBA guy. Can you think of a
better way to notify my application the show is ending or has ended?

Thanks,
Kal
 
Yup, there is an event fired at the end of the show you can trap.



Private Sub App_PresentationClose(ByVal Pres As Presentation)
Whatever you want to do goes here.
End Sub



Austin Myers
MS PowerPoint MVP Team

PowerPoint Video and PowerPoint Sound Solutions www.pfcmedia.com
 
Thanks!

Is it possible to insert that script to the presentation using
automation, similarly to how I edit the texts in the presentation? I'd
rather not make the user use a base presentation that already contains
the script (though it is possible).
 

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

Back
Top