.NET PowerPoint Examples
Work with Slides Using Syncfusion .NET PowerPoint Library
The Syncfusion® .NET PowerPoint Library allows you to create, modify, and remove slides in PowerPoint presentations using C# without Microsoft PowerPoint or interop dependencies. The nine predefined slide layout types let you create slides equivalent to those in Microsoft PowerPoint, or you can design custom slide layouts.
Watch this video to learn how to add, remove, resize, and customize slides in a PowerPoint presentation using the Syncfusion.NET PowerPoint library.
Work with slides using C#
Learn how to create modify and remove slides in PowerPoint presentations programmatically using C# with the Syncfusion .NET PowerPoint library. This guide demonstrates adding slides with predefined layouts and customizing slide content to build professional presentations effectively.
Step 1: Create a new project
Start by creating a new C# Console Application project.
Step 2: Install the NuGet package
Add the Syncfusion.Presentation.Net.Core package to your project from NuGet.org.
Step 3: Add required namespaces to work with slides
Add the following namespaces to your Program.cs file:
using Syncfusion.Presentation;Step 4: Add slides to a PowerPoint presentation
Create a new presentation and add a slide to it.
//Create a new instance of PowerPoint Presentation file
using IPresentation pptxDoc = Presentation.Create();
//Add a slide to the PowerPoint presentation
ISlide slide = pptxDoc.Slides.Add();Step 5: Save the PowerPoint presentation
Save the created PowerPoint presentation to a file stream.
//Save the PowerPoint Presentation as stream
FileStream outputStream = new(Path.GetFullPath(@"Output/Result.pptx"), FileMode.Create, FileAccess.ReadWrite);
pptxDoc.Save(outputStream);
outputStream.Close();GitHub project
NuGet installation
Get started quickly by downloading the installer and checking license information on the Downloads page.
Table of contents
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Learning
Technical Support
