C#: Online Guide
How To: powerpoint SDK
Page: Insert PowerPoint Pages
Page: Insert PowerPoint Pages
Home ›› XDoc.PowerPoint ›› C# PowerPoint: Insert PowerPoint Pages

C# PowerPoint - Insert Blank PowerPoint Page in C#.NET

Guide C# Users to Insert (Empty) PowerPoint Page or Pages from a Supported File Format


C#.NET PowerPoint document editor library control, RasterEdge XDoc.PowerPoint, offers easy & mature APIs for developers to add & insert an (empty) page into an existing PowerPoint document file. Besides, this PowerPoint document page inserting library control toolkit allows developers to specify where they want to insert (blank) PowerPoint document page (before the first page or after the last page or after any desired page of current PowerPoint document) using C# .NET class code.

Related .net document control helps:
c# asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net edit pdf page using c#: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET

This C# .NET PowerPoint document page inserting & adding component from RasterEdge is written in managed C# code and designed particularly for .NET class applications. Thus, using this PowerPoint document page manipulating and processing control SDK, you can create & add new PowerPoint page(s) to current target PowerPoint document in both web server-side application and Windows Forms project using a few lines of simple C# code.

Apart from the ability to inserting a new PowerPoint page into existing PowerPoint document file, RasterEdge C# .NET PowerPoint document page processing and editing control toolkit also owns other advanced PowerPoint document page manipulating functions. RasterEdge offers detailed guidances for each of those page processing functions, such as how to merge PowerPoint document files by C# code, how to rotate PowerPoint document page, how to delete PowerPoint page using C# .NET, how to reorganize PowerPoint document pages and how to split PowerPoint document in C# .NET class application.

By using reliable APIs, C# programmers are capable of adding and inserting (empty) PowerPoint page or pages from various file formats, such as PowerPoint, Tiff, PowerPoint, PowerPoint, PowerPoint, Bmp, Jpeg, Png, Gif, and so on. Some C# demos are provided for your reference.

C# DLLs: Insert Page to 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;

Add and Insert a blank Page to PowerPoint File in C#

This C# demo will help you to insert a PowerPoint page to a DOCXDocument object at specified position.

String inputFilePath1 = Program.RootPath + "\\" + "1.pptx";
String outPutFilePath = Program.RootPath + "\\" + "Output.pptx";

PPTXDocument doc1 = new PPTXDocument(inputFilePath1);
// Specify a position for inserting the selected page.
int pageIndex = 2;

// Insert the page to the PPTXDocument at specified position.
doc1.AddEmptyPage( pageIndex);

// Output the new document.

Add and Insert Multiple PowerPoint Pages to PowerPoint Document Using C#

Moreover, you may use the following C# demo code to insert multiple pages of a PowerPoint file to a PPTXDocument object at user-defined position.

String inputFilePath1 = Program.RootPath + "\\" + "1.pptx";
String outPutFilePath = Program.RootPath + "\\" + "Output.pptx";

PPTXDocument doc1 = new PPTXDocument(inputFilePath1);
// Specify a position for inserting the selected pages.
int pageIndex = 1;

// Insert the pages to the second document at specified position.
doc2.InsertPages(pages, pageIndex);

// Output the new document.