Create PowerPoint 2007 presentation from a template

Alexander picture Alexander · Apr 1, 2009 · Viewed 9.3k times · Source

I need to create a PowerPoint 2007 presentation from a template with Open XML Format SDK 2.0. The template has to be provided by the customer and is used for a individual layout style (font, background color or image,...). It needs to contain two predefined slides:

  • Text slide
  • Image slide

The application should now create a copy of the template file, create multiple copies of the text- and image slides and replace the content-placeholders with some content.

I already found some code snippets from Microsoft to edit the title of a slide, delete them or replace a image on a slide. But i didn't find out how i can create a copy of a existing slide. Maybe somebody can help me with this.

Answer

Norman H picture Norman H · Jul 21, 2009

I have been looking around for a similar answer and have found some resources to share:

http://msdn.microsoft.com/en-us/library/cc850834(office.14).aspx

or more samples

http://msdn.microsoft.com/en-us/library/cc850828(office.14).aspx

or this website

http://www.openxmldeveloper.com

There is also this free book documenting the OpenXML standard which was somewhat helpful.