/GemBox.Presentation.Examples

GemBox.Presentation is a .NET component that enables you to read, write, convert, and print presentation files (PPTX, PPT, and PPSX) from .NET applications in a simple and efficient way.

Primary LanguageC#MIT LicenseMIT

NuGet version NuGet downloads Visual Studio Marketplace rating

What is GemBox.Presentation?

GemBox.Presentation is a .NET component that enables you to read, write, convert, and print presentation files (PPTX, PPT, and PPSX) from .NET applications.

With GemBox.Presentation you get a fast and reliable component that’s easy to use and doesn't depend on Microsoft PowerPoint. It requires only .NET and it’s much faster than Microsoft Office Automation!

GemBox.Presentation Features

Get Started

You are not sure how to start working with PowerPoint presentations in .NET using GemBox.Presentation? Check the code below that shows how to create a PPTX file from scratch and write 'Hello World!' on it.

// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");

// Create new empty presentation.
var presentation = new PresentationDocument();

// Add a new custom slide.
var slide = presentation.Slides.AddNew(SlideLayoutType.Custom);

// Add a rectangle and fill it with dark blue color.
var shape = slide.Content.AddShape(
    ShapeGeometryType.RoundedRectangle, 2, 2, 8, 4, LengthUnit.Centimeter);
shape.Format.Fill.SetSolid(Color.FromName(ColorName.DarkBlue));

// Add a paragraph and some text, and set text color to white.
var run = shape.Text.AddParagraph().AddRun("Hello World!");
run.Format.Fill.SetSolid(Color.FromName(ColorName.White));

// Save the presentation as PowerPoint's PPTX file.
presentation.Save("Writing.pptx");

For more GemBox.Presentation code examples and demos, please visit our examples page.

Installation

You can download GemBox.Presentation from NuGet 📦 or from Downloads 🛠️.

Resources