I'm using the latest .NET Aspose.Slides version with PP2003 trying to save a presentation with a different master.
I have following code:
Presentation originalPresentation = new Presentation(pathToOriginalPresentation);
Presentation presentationContainingNewMasters = new Presentation(pathContainingMastersToApply);
Slide mainMaster = presentationContainingNewMasters.MainMaster;
//Code to retrieve TitleMaster is copied from ASPOSE demo.
Slide titleMaster = AsposeCommon.GetTitleMaster(presentationContainingNewMasters);
if(titleMaster == null)
titleMaster = mainMaster;
foreach(Slide slide in originalPresentation.Slides)
if(slide.Layout == SlideLayout.TitleSlide)
This code uses the files PresentationInOldStyle.ppt and StyleToApply.ppt. This results in a new presentation: PresentationInNewStyle.ppt (all .ppt are in attached .zip file).
After running the code I open the resulting ppt: In there, the old master is kind-of half applied.I goto View-> Master->Slide Master. The masters show as white rectangles with animated border. Clicking on them reveals the original masters (not the ones I tried to apply). If I try to save the the presentation, I get 100% CPU usage and eventually have to kill the process to get rid of it.
Has anyone else ran into something like this? Is my code wrong?
Thanks for any help and suggestions!