Aspose.Slides v22.214.171.124 doesn't seem to handle some of the .POT files that ship out with Microsoft Office 2003. This test shows copying a slide from the POT along with the master to a new, single slide presentation. Once the POT slide is copied to the new presentation, the existing slide is changed to use the master defined by the POT slide. However, this fails with the exception message "Slide is not a master slide". This code works for some of the POTs that ship with MS Office 2003, but not all. An example POT that fails is the one named "Brainstorming Session". Here is the code that illustrates the problem:
static void Main(string args)
License lic = new License();
Presentation empty = new Presentation();
Presentation template = new Presentation("c:\\program files\\microsoft office\\templates\\1033\\brainstorming session.pot");
Slide newSlide = empty.AddTitleSlide();
Slide srcSlide = template.Slides[template.Slides.LastSlidePosition];
SortedList masters = new SortedList();
Slide cloneSlide = template.CloneSlide(srcSlide, empty.Slides.LastSlidePosition + 1, empty, masters);
newSlide.ChangeMaster(cloneSlide, false); // this fails...
catch( Exception ex )
Is this a bug, or am I doing something wrong?