Hi Team,
I would like to use Aspose.Slides component in one of our projects for changing the name of the slidemaster in pptx/potx files.
When I tried to code for PPT/POT files, I use the "MainMaster" object under the "Presentation" class and it works perfectly.
Aspose.Slides.Presentation pptFile = new Presentation(infile);
pptFile.MainMaster.Name = slideMasterName;
pptFile.Write(infile);
However, when I tried to do the same thing on PPTX/POTX, it seems that the "MasterSlideEx" object under the "PresentationEx" class (thru "Masters[0]" object) cannot achieve the same result. (no error comes up, but nothing has been changed).
Aspose.Slides.Pptx.PresentationEx pptxFile = new Aspose.Slides.Pptx.PresentationEx(infile);
pptxFile.Masters[0].Name = slideMasterName;
pptxFile.Write(infile);
So, is there anything I've done wrong?
Thanks,