Problem with PowerPoint Event Triggering

E

ElGordo

Howdy,

I have an application (C#) which runs some automation tasks when a
PowerPoint 2003 presentation begins.

I use the SlideShowBegin Event to start my routine. And it works fine...
that is until a new PowerPoint presentation is opened, then the
SlideShowBegin Event fires 2 times in a row. If a PowerPoint presentation
is opened a third time, the SlideShowBegin Event fires *3* times in a row
(and so on).

This incremental firing of SlideShowBegin events occurs until I close down
my application and restart it- PowerPoint appears to "reset" after that.

Why is PowerPoint "storing and re-firing" the SlideShowBegin events?
 
K

Keith Tromer

ElGordo,

I cannot explain why this is happening to you, but I can confirm that it is
NOT normal operation. I use that even regularly, and it fires as it should.

Regards,

Keith Tromer
 
E

ElGordo

Thanks for the response.

We have confirmed this happening in 3 seperate environments now using
PowerPoint 2003. We are having to apply logic where we set a boolean value
to True after the first event fires so that our code blocks do not run
repeatedly.

*One item of note, our application is using the object library version 2.7 -
would this make a difference?

If so, do we need to compile a different version of our application (using a
different object library) for each different version of PPT?

I can't see how the (slightly) older object library could make any
difference - that shouldn't alter the way the PPT application itself fires
off events.
 
K

Keith Tromer

Unfortunately I do not have the tools here (at home computer) to really test
right now. But I have 2 addins I wrote for myselft that use this event with
PPT 2002 & 2003 without problem. NONE were written in C. One in VBA, and
the other in VB6.

You say , "until a new PowerPoint presentation is opened, then the
SlideShowBegin Event fires 2 times in a row"

I assume you are saying, that once a second presentation is opened, then
slide show is started, the event fires twice.. Correct? Opening the
presentation is not firing the event, is it?
 
E

ElGordo

I assume you are saying, that once a second presentation is opened, then
slide show is started, the event fires twice.. Correct?

Right. Within our application which launches PowerPoint to display each
slide show, it appears as if PPT is "stacking" these events each time a new
slideshow begins.

We are trying to put in logic which only captures the first "SlideShowBegin"
event fired off by PPT, but it is causing some problems.
 

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