We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create a PowerPoint file in ASP.NET Core?

Platform: ASP.NET Core |
Control: Presentation |
Published Date: November 30, 2018 |
Last Revised Date: December 3, 2018

Syncfusion Essential PowerPoint is a ASP.NET Core PowerPoint library used to create, read, and edit PowerPoint documents. Using this library, you can start creating a PowerPoint document in ASP.NET Core.

 

Steps to create PowerPoint file programmatically:

 

  1. Create a new C# ASP.NET Core Web Application project.

 

 

  1. Select Web Application pattern (Model-View-Controller) for the project.

 

Select Web application(Model-View-Controller)

 

  1. Install the Syncfusion.Presentation.Net.Core NuGet package as reference to your .NET Standard applications from NuGet.org.

 

  1. A default controller with named HomeController.cs gets added on creation of ASP.NET MVC project. Include the following namespaces in the HomeController.cs file.

 

 

 

  1. A default action method named Index will be present in HomeController.cs. Right click on Index method and select Go To View where you will be directed to its associated view page Index.cshtml.

 

  1. Add a new button in the Index.cshtml as shown below.

 

 

  1. Add a new action method CreateDocument in HomeController.cs and include the below code snippet to create a PowerPoint file and download it.

C#:

 

VB.Net:

 

A complete working example of how to create a PowerPoint file in ASP.NET Core can be downloaded from Create-PowerPoint-file.zip.

 

By executing the program, you will get the PowerPoint file as follows.

 

Take a moment to peruse the documentation, where you can find basic slide manipulation options Working with slides, adding Charts in slide, organizing and analyzing data through Tables, and most importantly Image conversions etc., with code examples.

Refer here to explore the rich set of Syncfusion Essential Presentation features.

 

An online sample link to generate PowerPoint file.

See Also:

Create a PowerPoint file in ASP.NET MVC

Create a PowerPoint file in ASP.NET

Create a PowerPoint file in Windows Forms

Create a PowerPoint file in Xamarin

Create a PowerPoint file in WPF

Create a PowerPoint file in UWP

Note:

Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, include a license key in your projects. Refer to link to learn about generating and registering Syncfusion license key in your application to use the components without trail message.

2X faster development

The ultimate ASP.NET Core UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Jesús Portillo
Sep 18, 2020

Hello, I'm using the presentation library and at the end after .Save im doing .Close of the pptxDoc. The CPU on server is going to 100% with the .Close method and making the IIS unresponsive.

Do you know something about this?

Reply
Manikandan Ravichandran [Syncfusion]
Sep 29, 2020

Hi Jesus,

Thank you for your update.

We have tried to reproduce the reported issue with the given details. But it is working fine in our end. For your reference, we have attached the sample which is used at our end to reproduce the issue and it can be downloaded from the below link. https://www.syncfusion.com/downloads/support/directtrac/general/ze/ASPNetMVC-532844896

Note: The input document is in the “App_Data” folder of the above sample.

If you still facing the issue means, then kindly share the complete runnable sample or modified sample of above and also input document, so that we can proceed further to analyze and update you with the appropriate details.

Please let us know if you have any other questions.

Regards, Manikandan Ravichandran

Jesús Portillo
Sep 18, 2020

Hello, I'm using the presentation library and at the end after .Save im doing .Close of the pptxDoc. The CPU on server is going to 100% with the .Close method and making the IIS unresponsive.

Do you know something about this?

Reply

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile