C#: Online Guide
How To: powerpoint SDK
File: Create, Load a PowerPoint File
File: Create, Load a PowerPoint File
Home ›› XDoc.PowerPoint ›› C# PowerPoint: Create, Load a PowerPoint File

C# PowerPoint - PowerPoint Creating in C#.NET

Tell Users How to Create New PowerPoint File and Load PowerPoint from Other Files


C#.NET PowerPoint document file creating library control, RasterEdge XDoc.PowerPoint SDK for .NET, is a robust & thread-safe .NET solution which provides a reliable and quick approach for C# developers to create a highly-secure and industry-standard PowerPoint document file. convert pdf to word using itextsharp c#, add watermark to pdf c#, how to print barcode in crystal report in c#.net, microsoft azure read pdf, asp.net pdf editor control, datamatrix c#. The PowerPoint document file created by RasterEdge C# PowerPoint document creator library is searchable and can be fully populated with editable text and graphics programmatically.

Related .net document control helps:
asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net open word document in browser: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net pdf editor control: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects

This Visual C# .NET PowerPoint document creation control toolkit can not only allow developers to generate standard PowerPoint document file but also offer them the ability to count the page numbers of generated PowerPoint document by simple C# programming code. As this PowerPoint document creator library is built in .NET Framework 2.0 and designed specifically for .NET applications, C# developers can easily use this professional PowerPoint document generating SDK in all .NET developing applications, including ASP.NET web services and Windows Forms application. c# extract pdf page as image, c# edit pdf metadata, add image to pdf vb.net, convert pdf to word vb.net, convert pdf to jpg vb.net, c# pdf to png, vb.net pdf ocr.

After creating a PowerPoint document in C#.NET using this PowerPoint document creating toolkit, if you need to add some text and draw some graphics on created PowerPoint document file, you can also use this C#.NET PowerPoint document drawing library control. how to edit pdf file in asp.net c#, asp.net pdf viewer control free, asp net view word document in browser, asp.net core image viewer, asp.net preview pdf, pdf viewer in asp.net core mvc, asp.net core open excel file.

C# DLLs: Create, Load PowerPoint File

Add necessary XDoc.PowerPoint DLL libraries into your created C# application as references.










Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PowerPoint;

Create New PowerPoint Document With One Blank Page in C# Project

In C# class programming, you can use specific APIs to create PowerPoint file. And the PowerPoint document can contain one empty page or multiple empty pages. The following example will tell you how to create a PowerPoint document with one empty page.

String outputFile = Program.RootPath + "\\" + "output.pptx";

//  Create a new PowerPoint Document object with one blank page
PPTXDocument doc = PPTXDocument.Create(outputFile);

//  Save the new created PowerPoint document into file

Create PowerPoint Document From Existing PowerPoint File Using C#

You may also load or create a PowerPoint document object from existing PowerPoint file in C#.net.

//  Load from a file
String inputFilePath1 = Program.RootPath + "\\" + "1.pptx";
PPTXDocument doc1 = new PPTXDocument(inputFilePath1);
if (doc1 == null) throw new Exception("fail to load the file");
//  ...

Load PowerPoint From Stream Object in C# Project

PowerPoint document can be loaded from a stream object in C# programming.

//  Load from a stream
String inputFilePath = Program.RootPath + "\\" + "2.pptx";
using (FileStream fileStream = File.Open(inputFilePath, FileMode.Open, FileAccess.Read))
    PPTXDocument doc = new PPTXDocument(fileStream);
    if (doc == null) throw new Exception("fail to load PowerPoint document from the stream");
    //  ...