1. Products
  2.   Presentation
  3.   .NET
  4.   Open XML SDK
 
  

.NET Library for Manipulating Presentation Documents

Read, Write, Manipulate & Convert Presentation files via .NET API.

Open XML SDK is an open source API, developed by Microsoft and distributed under Microsoft open source code of conduct to manipulate Presentation Documents

Using the API, you can add text, header, footer, end notes, footnotes, styles, themes, and more. It allows you to generate high-performance presentation documents and extract data from them. The API support various .NET platforms including, .NET 3.5, .NET 4.0, .NET 4.6, and .NET Standard 1.3.

Previous Next

Getting Started with Open XML SDK

You need to have .NET Framework 3.5 or above. Once you have met the prerequisites, you can manually download the repository from GitHub or install from NuGet.

Install Open XML SDK from NuGet

 Install-Package DocumentFormat.OpenXml

Manipulate PPTX file using C#

Open XML SDK allows .NET programmers to create as well as modify presentations from their own .NET applications. In order to modify an existing file, you can open an existing file and append changes like text, paragraphs, tables, and more.

Create PPTX - C#

using (PresentationDocument doc = PresentationDocument.Create("Presentation.pptx", PresentationDocumentType.Presentation))
{
  // Insert other code here.
}
            

Create a Table in PPTX using C#

The API allows the developers to add a table in Presentation documents. You can add a table, set table properties, set table grid, and column grid properties. Furthermore, you can manage table cells and rows using TableCell and TableRow classes respectively.

 English