none
presenter note in Power point 2007 RRS feed

Answers

  • You can try something like this...
            private void btnSlideNotes_Click(object sender, RibbonControlEventArgs e)
            {
                PPT.Presentation pres = pApp.ActivePresentation;
                pres.Windows[1].ViewType = Microsoft.Office.Interop.PowerPoint.PpViewType.ppViewNotesPage;
                PPT.Slide n = pres.Windows[1].Selection.SlideRange[1];
                PPT.Shape shp = n.Shapes[2];
                MessageBox.Show(shp.TextFrame.TextRange.Text);
            }
    


    But if you need something else, it's probably better to ask in the PowerPoint newsgroup as that's where you'll find the application specialists. You'll find a link in the Please Read First message. There really isn't much in the way of PowerPoint object model support in the VSTO forum as the VSTO technology doesn't extend the object model in any way.

    Cindy Meister, VSTO/Word MVP
    Tuesday, August 4, 2009 3:11 PM
    Moderator

All replies

  • You can try something like this...
            private void btnSlideNotes_Click(object sender, RibbonControlEventArgs e)
            {
                PPT.Presentation pres = pApp.ActivePresentation;
                pres.Windows[1].ViewType = Microsoft.Office.Interop.PowerPoint.PpViewType.ppViewNotesPage;
                PPT.Slide n = pres.Windows[1].Selection.SlideRange[1];
                PPT.Shape shp = n.Shapes[2];
                MessageBox.Show(shp.TextFrame.TextRange.Text);
            }
    


    But if you need something else, it's probably better to ask in the PowerPoint newsgroup as that's where you'll find the application specialists. You'll find a link in the Please Read First message. There really isn't much in the way of PowerPoint object model support in the VSTO forum as the VSTO technology doesn't extend the object model in any way.

    Cindy Meister, VSTO/Word MVP
    Tuesday, August 4, 2009 3:11 PM
    Moderator

  • Can i read the notes for slide index not from the slide selection ??



    Thanks a lot
    Thursday, August 20, 2009 11:06 AM
  • The code sample I gave you does exactly that. SlideRange[index]

    If you require a detailed discussion about how the PowerPoint object model works, and how to use it most efficiently, I recommend you ask in the PowerPoint newsgroup, where you'll find the application specialists, as I mentioned in my previous reply.
    Cindy Meister, VSTO/Word MVP
    Thursday, August 20, 2009 5:49 PM
    Moderator
  • I mean this ...

    private string SlideNotes(int SlideIndex)
    { string Notes = string.Empty; PPT.Presentation pres = pApp.ActivePresentation;
    pres.Slides[SlideIndex].Select();//Do this before call the selection slide
    Microsoft.Office.Interop.PowerPoint.PpViewType lastView = pres.Windows[1].ViewType;
    pres.Windows[1].ViewType = Microsoft.Office.Interop.PowerPoint.PpViewType.ppViewNotesPage;
    PPT.Slide n = pres.Windows[1].Selection.SlideRange[1];
    PPT.Shape shp = n.Shapes[2];
    Notes = shp.TextFrame.TextRange.Text;
    pres.Windows[1].ViewType = lastView;
    return Notes; }
    Thanks...
    • Edited by bestDev Friday, August 21, 2009 8:25 AM
    Friday, August 21, 2009 8:21 AM