How to add notes

R

rajas

I am using C++ to programmatically prepare powerpoint slides. I have
figured out how to add bullets and text on the slide - but do not know how
to add text in the notes part of the slide. Recording a macro to do this
did not give me any useful clues & I did not quite understand how to use the
NotesPage object of the slide (if indeed I am supposed to use that). Any
help is appreciated. Thanks
 
A

Andrew Cushen

Rajas:

I found the following on MSDN, it's VB but you might be
able to get an idea for your C++ code from it:

<<
Use the NotesPage property to return a SlideRange
collection that represents the specified notes page. The
following example inserts text into placeholder two (the
notes area) on the notes page for slide one in the active
presentation.

ActivePresentation.Slides(1).NotesPage.Shapes _
.Placeholders
(2).TextFrame.TextRange.InsertAfter "Added Text"(The underscore "_" is the line-continuation character in
VB)

It occurs to me that placeholder two may not always be the
notes area on every slide; you'll have to check that.

HTH,

-Andrew
======================================================
 

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