I download latest 14.4.0 of Slides. I can not add notes to slide follow previous working example. Please give me a workaround to add notes to slides in this version of Slides.
Hi,
Thanks for inquiring Aspose.Slides.
I have observed the requirement shared by you and suggest you to please try using the following sample code on your end to serve the purpose. Please share, if I may help you further in this regard.
public static void addNotes()
{
Presentation pres = new Presentation();
ISlide slide = pres.getSlides().get_Item(0);
INotesSlide note= slide.addNotesSlide();
IAutoShape ashp = (IAutoShape)note.getShapes().get_Item(1);
ashp.getTextFrame().setText(“Notes text”);
pres.save(“D:\Aspose Data\NotesSlide.pptx”, SaveFormat.Pptx);
}
Many Thanks,
I have run the code
Below is my code
Presentation presentation = new Presentation();
ISlide slide = presentation.getSlides().get_Item(0);
INotesSlide note= slide.addNotesSlide();
IAutoShape ashp = (IAutoShape)note.getShapes().get_Item(1);
ashp.getTextFrame().setText(“Notes text”);
try {
FileOutputStream fop = new FileOutputStream(file);
presentation.save(fop, SaveFormat.Ppt);
} catch (FileNotFoundException e) {
}
------------------------
The note section is still empty
I have attached the ppt file
Please note: I am running Aspose Slide 14.4.0
Hi Benjamin,
I have observed the sample code and presentation shared by you. You are saving the presentation as PPT on your end. I have been able to observe that if you save the presentation as PPT the notes are not appearing. I have created an issue with ID SLIDESJAVA-34434 in our issue tracking system to further investigate and resolve the issue. In the meanwhile, I suggest you to please try saving the presentation as PPTX to get things going on your end.
We are sorry for your inconvenience,