We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create a PlaceHolder in PowerPoint

Hi

I try to build a new PowerPoint File with Placeholders. But i can not find how.

my Placeholders Collection is allways empty.

How can i create Placeholders in PowerPoint?

Regards

Markus

Hi Markus,

You can create a template having slide with placeholders and further clone such slide to the target presentation as created by Aspose.Slides. An example is as under:

PresentationEx srcPres = new PresentationEx("pres.pptx");

PresentationEx targetPres = new PresentationEx();

targetPres.Slides.Remove(targetPres.Slides[0]);

targetPres.Slides.AddClone(srcPres.Slides[0]);

targetPres.Write("presxxx.pptx");