none
How to add a speaker notes programmatically to a PPT slide? RRS feed

  • Question

  •  

    Hello,

     

    We are developing a powerpoint automation application using c#. can i know how to add a speaker notes programmatically to a slide? Thanks,

     

    Thanks,

    R. Sankar

     

     

     

    Saturday, August 18, 2007 10:54 AM

Answers

  • Hi SanKar,

     

    You can use the following codes to add a speaker note to corresponding slide. The Slide.NotesPage.Shapes.PlaceHolders[2] always stands for the SpeakerNotes Frame for every slied.

       

    Code Snippet

        PowerPoint.Presentation presentation = Globals.ThisAddIn.Application.ActivePresentation;

                PowerPoint.Slide slide = presentation.Slides[1] as PowerPoint.Slide;

                slide.NotesPage.Shapes.Placeholders[2].TextFrame.TextRange.InsertAfter("This is a Test");

    Wish this helps!

     

    Thanks

    Ji

     

    Wednesday, August 22, 2007 4:03 AM
    Moderator

All replies

  • Hi SanKar,

     

    You can use the following codes to add a speaker note to corresponding slide. The Slide.NotesPage.Shapes.PlaceHolders[2] always stands for the SpeakerNotes Frame for every slied.

       

    Code Snippet

        PowerPoint.Presentation presentation = Globals.ThisAddIn.Application.ActivePresentation;

                PowerPoint.Slide slide = presentation.Slides[1] as PowerPoint.Slide;

                slide.NotesPage.Shapes.Placeholders[2].TextFrame.TextRange.InsertAfter("This is a Test");

    Wish this helps!

     

    Thanks

    Ji

     

    Wednesday, August 22, 2007 4:03 AM
    Moderator
  • Hi Ji

     

    Thanks, for your help it's works fine

     

    Thanks,

    Sankar

    Wednesday, September 5, 2007 8:34 AM