I ran into this issue before, but found it was because I was using .ppt and .pptx within the same library which caused issues. Now I am only using true .pptx and .potx files, but when I generate a .pptx I am getting this error message:
I’ve narrowed it down to…
How can i help you when you are using some external functions implemented? You are certainly making some mistake while cloning pptx slides. Here is a working example of slide cloning the you can compare it with your implementation (Note: out.pptx is only an empty presentation without any slides):
PresentationEx srcPres = new PresentationEx("d:\\ppt\\testClone.pptx");
PresentationEx targetPres= new PresentationEx("d:\\ppt\\out.pptx");
MasterSlideEx srcSlideMaster = srcPres.Slides.LayoutSlide.MasterSlide;
int index = targetPres.Masters.AddClone(srcSlideMaster);
MasterSlideEx targetSlideMaster = targetPres.Masters[index];
foreach (SlideEx sld in srcPres.Slides )
NickChristy:I've narrowed it down to...PresentationEx newPresentation = new PresentationEx(MasterTemplate.FileLocation);newPresentation.Write(fileLocation);I am assuming this points to something inside the template file I am using?
Yes. I mean that.