Hey!
For my current project I have to merge slides from different .ppts into a new ppt.
The Problem is the original ppts use different masters…
What I do at the moment is
Presentation newPres = new Presentation(“someTemplate.ppt”);
foreach(string file in filesToUse)
{
Presentation orig = new Presentation(file);
int pos = getMeACorrectPos();
Slide os = orig.GetSlideByPosition(pos);
// insertpoint1
orig.CloneSlide(origSlide,newPres.Slides.Count,newPres);
}
newPres.write(“newPres.ppt”);
This basically works quite good. BUT as soon as some of the original ppts use masters the new presentation does NOT work correctly
adding these lines (@ insertpoint1) won’t help either:
os.FollowMasterBackground = false;
os.FollowMasterObjects = false;
os.FollowMasterScheme = false;
The new File is still someway corrupt…
So, is there a way to detach os (a slide) from it’s original master?
FEZ