1. Products
  2.   Presentation
  3.   .NET
  4.   FileFormat.Slides for .NET
FileFormat.Slides for .NET

FileFormat.Slides for .NET

 
 

Simplify presentation Creation and Customization with .NET API

Create & customize presentations easily with FileFormat.Slides, an Open-Source .NET API. Simplify slides generation & automation with this lightweight library.

FileFormat.Slides for .NET offers a simple, easy and user-friendly experience, making it the ideal choice for those looking to work with Microsoft PowerPoint presentation using an open-source API. This open-source .NET API has been thoughtfully designed to simplify the process of creating and customizing PowerPoint presentation. With this intuitive C# library, you can now easily generate and manipulate presentations with just a few lines of code.

The installation process of this lightweight solution is seamless and offers a stack of features to cater to all your presentation requirements. FileFormat.Slides for .NET leverage the OpenXML SDK, a technology endorsed by Microsoft. FileFormat.Slides for .NET serves as a convenient wrapper that simplifies the utilization of its advanced capabilities.

In consideration of developers, this open-source .NET library makes automating PowerPoint presentation creation and editing a breeze with just a few lines of code. You can enhance its capabilities using the OpenXML SDK library. Handling FileFormat.Slides for .NET is easy, thanks to its user-friendly design. The library comes with intelligent features like adding sheets, text, opening existing presentations in a stream, applying formatting to the entire presentation or specific text shape, adding images to presentations, and much more.

Explore our GitHub repository to contribute, suggest improvements, and enhance this Open Source API: https://github.com/fileformat-slides/FileFormat.Slides-for-.NET

Previous Next

Getting Started with FileFormat.Slides for .NET

The recommended way to install FileFormat.Slides for .NET is using NuGet. Please use the following command for a smooth installation.

Install FileFormat.Slides for .NET via NuGet

NuGet\Install-Package FileFormat.Slides 
You can also download it directly from GitHub.

Creating an PowerPoint presentation Programmatically

The following code snippet creates an empty PowerPoint presentation programmatically.

Create a PowerPoint presentation via .NET API

 
// Create an object of the Presentation class.
 Presentation presentation = Presentation.Create("presentation.pptx");

//Perform necessary operations.
//...

// Call the Save method to save the PowerPoint file onto the disk.
presentation.Save();

Insert Text into Presentation Programmatically

The following code snippet inserts a text into presentation programmatically.

Insert a Text into Presentation via .NET API

 

// Create a new PowerPoint presentation at the specified file path
Presentation presentation = Presentation.Create("D:\\AsposeSampleResults\\test2.pptx");

// Create a text shape for the title and set its properties
TextShape shape = new TextShape();
shape.Text = "Title: Here is my first title From FF";
shape.TextColor = "980078";
shape.FontFamily = "Baguet Script";

// Create the slide and add the text shape to it
Slide slide = new Slide();
slide.AddTextShapes(shape);

// Append the slide to the presentation
presentation.AppendSlide(slide);

// Save the modified presentation
presentation.Save();