CloneSlide does not copy notes

It seems that CloneSlide does not copy the notes. It is crucial for my application to be able to copy the notes with the original source formatting.I am in a fair bit of trouble here. Any ideas.

David Berger

Dear David,



I wrote some time ago in this forum how to copy slides together with notes.

Also TextDemo.cs has commented code which show how to do it.



// Copy Notes to the new created
slide.


if (part2.Slides[ i ].Notes !=
null)


{

sl.AddNotes();


for (int j = 0; j <
part2.Slides[ i ].Notes.Paragraphs.Count;
j++)

{


sl.Notes.Paragraphs.Add(new Paragraph(part2.Slides[ i ].Notes.Paragraphs[ j ]));

}

sl.Notes.Paragraphs.RemoveAt(0);


}




So you should create notes in a new slide and copy all paragraphs.