Cannot find the NewPresentation event in Application object in Powerpoint Add-in RRS feed

  • Question

  • HI!

    I am making an object of Microsoft.Office.Interop.PowerPoint.Application and want to register an event handler for NewPresentation event. But I am unable to find it. Following is the code.

     private void ThisAddIn_Startup(object sender, System.EventArgs e)
          // Wire up event handlers for the Word document events we need to respond to.
            PowerPoint.Application app = new Microsoft.Office.Interop.PowerPoint.Application();
            app.PresentationOpen += new Microsoft.Office.Interop.PowerPoint.EApplication_PresentationOpenEventHandler(app_PresentationOpen);

    I am unable to find the app.NewPresentation event and also app.PresentationBeforeClose

    What am I missing?

    thanks and regards

    Fahad Ali Shaikh


    Tuesday, September 21, 2010 10:12 AM


  • Hi!

    Well I figured it out. you have to use this


    EApplication_Event)this.Application).NewPresentation += new EApplication_NewPresentationEventHandler(app_NewPresentation);

    Tuesday, September 21, 2010 11:10 AM