Catch powerpoint 2002 (XP) events

Y

yoyo1977

Hi all,

I need to catch events in Powerpoint 2002.
My code is :

pMsPowerPoint = new PowerPoint.Application();

pMsPowerPoint.Visible = MsoTriState.msoTrue;

pPresentations = pMsPowerPoint.Presentations;

pPresentation = pPresentations.Open(pCheminFichier.ToString(),
MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoTrue);

pEvtPowerPoint = pMsPowerPoint as PowerPoint.EApplication_Event;

pEvtPowerPoint.PresentationClose += new

PowerPoint.EApplication_PresentationCloseEventHandler(PowerPoint_FermerPresentation);

pEvtPowerPoint.WindowSelectionChange += new
PowerPoint.EApplication_WindowSelectionChangeEventHandler(ChangerSelection);

When I run this, nothing happens when i close my presentation.

Best regards.
 

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