Hi,
we use Aspose Slides to edit the notes text of slides. This is our code:
var pres = new Presentation(@"S:\tmp4\T00I309200R9L63_.pptx");
foreach (var notes in pres.Slides.Select(slide => slide.NotesSlideManager.NotesSlide ?? slide.NotesSlideManager.AddNotesSlide()))
{
notes.NotesTextFrame.Text = "";
}
However there are some slides for which the NotesTextFrame
property is null
. I attached you an example. According to the docs, the property is read only so we get an exception here. What is the proper way to handle this issue?
I also noticed if I open the the file with powerpoint itself and just click into the notes field (without typing) and saving it again, the NotesTextFrame
isn´t null
any more. For this behaviour I added a gif and the working slide into the archive. As doing this manual workaround for each slide in a real presentation is massive work I would appreciate if you may analyze this issue or can give me a solution how we should handle the case where the NOtesTextFrame
is null
.
Kind Regards,
Daniel
example.zip (5.5 MB)