Questions tagged [gembox-presentation]

GemBox.Presentation is a .NET component that enables developers to read, write and convert presentation files from their .NET applications

GemBox.Presentation () is a .NET component that enables developers to read, write, and convert presentation files from their .NET applications.

GemBox.Presentation Free is free of charge while GemBox.Presentation Professional is a commercial version licensed per developer. Server deployment is royalty-free.


Support

Read Read & Write Write
PPT, POT PPTX, PPSX, POTX, PPTM, PPSM, POTM PDF, PDF/A
XPS
PNG, JPG, GIF, BMP, TIFF

Hello World

C#

// Create a new presentation.
PresentationDocument presentation = new PresentationDocument();

// Create a new slide.
Slide slide = presentation.Slides.AddNew(SlideLayoutType.Custom);

// Create a new textbox.
TextBox textBox = slide.Content.AddTextBox(ShapeGeometryType.Rectangle, 2, 2, 5, 4, LengthUnit.Centimeter);

// Add "Hello World" text.
textBox.AddParagraph().AddRun("Hello World");

// Save as PPTX file.
presentation.Save("Output.pptx");

VB.NET

' Create a new presentation.
Dim presentation As New PresentationDocument()

' Create a new slide.
Dim slide As Slide = presentation.Slides.AddNew(SlideLayoutType.Custom)

' Create a new textbox.
Dim textBox As TextBox = slide.Content.AddTextBox(ShapeGeometryType.Rectangle, 2, 2, 5, 4, LengthUnit.Centimeter)

' Add "Hello World" text.
textBox.AddParagraph().AddRun("Hello World")

' Save as PPTX file.
presentation.Save("Output.pptx")

Top Features


System Requirement

  • .NET Framework 3.5 - 4.8
  • .NET Core 3.1 (.NET 5 for Windows)
  • .NET Standard 2.0 (.NET 5 for Linux, macOS, Android, iOS, …)

Installation

You can download GemBox.Presentation from BugFixes

Or from NuGet


Resources


Related Tags

5 questions
1
vote
3 answers

C# Add images and text to PowerPoint slides

I'm trying to add images from a folder and their names below each image. In master slide[0] there should be Title. My problem is that my code is generating single PowerPoint file for each image instead of adding all images to one PowerPoint file.…
Kamweti C
  • 19
  • 6
1
vote
2 answers

Update Chart data in PowerPoint

I am creating PowerPoint by loading template and updating the data and saving as a new copy. I am using GemBox.Presentation and GemBox.SpreadSheet for that. I can access the chart data using spreadsheet however I am not sure how to update it. Here…
1
vote
1 answer

Split table to multiple slides in PowerPoint file

I'm using GemBox.Presentation and I'm creating a large table in my PPTX file. Similar to this example, e.g.: PresentationDocument presentation = new PresentationDocument(); Slide slide = presentation.Slides.AddNew(SlideLayoutType.Custom); int…
hertzogth
  • 236
  • 1
  • 2
  • 19
0
votes
1 answer

Chart axes in PowerPoint file

I'm creating a chart (of ComboChart type) in the PPTX file using GemBox.Presentation (together with GemBox.Spreadsheet). I'm using the code from the PowerPoint Chart example and added parts of the Excel Combo Chart example. This is what I have so…
0
votes
1 answer

Merging presentations into single presentation

I'm using GemBox.Presentation and I need to merge multiple PPTX files, combine them into a single PPTX file. I tried this: PresentationDocument presentation1 = PresentationDocument.Load("PowerPoint1.pptx"); PresentationDocument presentation2 =…
hertzogth
  • 236
  • 1
  • 2
  • 19