Merge PPT

How to merge PPT files in C#

GroupDocs.Merger allows developers to merge PPT files when it’s needed to organize multiple PPT files into single document or send fewer attachments etc. And you can do this without¬†any third-party software or manual work involved. With GroupDocs.Merger it is possible to combine PPT documents of any size and structure - all text, images, tables, graphs, forms and other content will be preserved.

The following example demonstrates how to merge PPT files with several lines of C# code:

  • Create an instance of Merger class and pass source PPT file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Add another PPT file to merge with Join method. Repeat this step for other PPT documents you want to merge.
  • Call Merger class Save method and specify the filename for the merged PPT file as parameter.
// Load the source PPT file
using (Merger merger = new Merger(@"c:\sample1.ppt"))
{
    // Add another PPT file to merge
    merger.Join(@"c:\sample2.ppt");
    // Merge PPT files ans save result
    merger.Save(@"c:\merged.ppt");
}

About PPT File Format

A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. A PPT file can contain several different types of information such as text, bulleted points, images, multimedia and other embedded OLE objects. Microsoft came up with newer file format for PowerPoint, known as PPTX, from 2007 onwards that is based on Office OpenXML and is different from this binary file format.

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

Merge PPT Live Demo

GroupDocs.Merger for .NET provides an online PPT Merger App, which allows you to try it for free and check its quality and accuracy.

“Merge PPT”