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.
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.