Printing in Powerpoint executes App_PresentationClose event code (

R

RJ Lohan

I have an addin (.ppa file) for Powerpoint which has some
code to respond to the App_PresentationClose event.

Weird thing is that this code is running when I execute
print commands! e.g; Ctrl+P, Toolbar 'Print' button, File-

??

This happens for Powerpoint 2000, 2002/XP & 2003
 
S

Shyam Pillai

When you print a presentation, the print engine appears to work with a copy
of the presentation. When this copy is closed when the printing ends it
fires the Close Event.
 
R

RJ Lohan

Thanks guys. The flag check is the workaround I came up with too - but wasn't
100% sure that it was a reliable fix. Will the Close event *always* be fired
after a print event? My initial testing was showing that only the toolbar
Print button caused a close event, but now looks like all printing does. A
bit of uncertainty there, so wasn't sure that this issue came up 100% of the
time?
 
R

RJ Lohan

Also, checking for a pathless presentation isn't ideal either - a
presentation that has never been saved will also be pathless.

In my case I'm doing something along the lines of "do you wish to save the
presentation?" so skipping my close code for pathless presentations won't
work.

If I can find some info to assure me that Print actions *always* fire a
Close event, I can go the flag route.

?
 

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