wordpress hit counter
Creating a PresentationML document with .NET - OpenXML Developer - Blog - OpenXML Developer
Goodbye and Hello

OpenXmlDeveloper.org is Shutting Down

There is a time for all good things to come to an end, and the time has come to shut down OpenXmlDeveloper.org.

Screen-casts and blog posts: Content on OpenXmlDeveloper.org will be moving to EricWhite.com.

Forums: We are moving the forums to EricWhite.com and StackOverflow.com. Please do not post in the forums on OpenXmlDeveloper.org. Instead, please post in the forums at EricWhite.com or at StackOverflow.com.

Please see this blog post for more information about my plans moving forward.  Cheers, Eric

Creating a PresentationML document with .NET

Creating a PresentationML document with .NET

Rate This
  • Comments 26

 Article By : Vijayeta.t of  SONATA SOFTWARE LIMITED

The objective of this article is to create an OpenXML PresentationML using the .NET 3.0 System.IO.Packaging API.

The user is provided with a GUI to enter the text which would appear in slides. The UI consists of multiline textboxes for the header and the content, where the user can enter text for each slide. The user may also navigate through slides and create multiple slides.

The contents of textboxes are read into xml files slide.xml.  Contents of slide.xml:


 The Slide.xml parts that hold the content of each slide and the presentation.xml part that describes the relationship  Id of each of the slides, are all created programatically.

The standard files such as SlideLayouts,SlideMaster,NotesMaster and Themes are added to the ‘bin’ directory of the project,which are read and packaged to form the presentation package.These files can also be created programatically as part of package.

 Here is an example of the UI:


Open file explorer select and double click on the document you just created (assuming you have PowerPoint 2007 installed):


The presentation is displayed as follows:


Attachment: Presentation Samples.zip
Page 1 of 2 (26 items) 12