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

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

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


C#.NET Word document editor library control, RasterEdge XDoc.Word, offers easy & mature APIs for developers to add & insert an (empty) page into an existing Word document file. c# itextsharp add text to existing pdf, barcode generator github c#, create thumbnail from pdf c#, vb.net pdf viewer control, how to convert pdf to word document using c#, pdf annotation in c#. Besides, this Word document page inserting library control toolkit allows developers to specify where they want to insert (blank) Word document page (before the first page or after the last page or after any desired page of current Word 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
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf page using c#: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
c# asp.net image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
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 Word document page inserting & adding component from RasterEdge is written in managed C# code and designed particularly for .NET class applications. Thus, using this Word document page manipulating and processing control SDK, you can create & add new Word page(s) to current target Word document in both web server-side application and Windows Forms project using a few lines of simple C# code. convert excel file to pdf using c#, c# convert multipage tiff to pdf pdfsharp, c# generate pdf with images, edit pdf file using itextsharp c#, vb.net pdf merge, vb.net pdf open password protected, vb net pdf read image.

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

By using reliable APIs, C# programmers are capable of adding and inserting (empty) Word page or pages from various file formats, such as Word, Tiff, Word, Excel, PowerPoint, Bmp, Jpeg, Png, Gif, and so on. Some C# demos are provided for your reference. c# mvc website pdf file in stored in byte array display in browser, asp.net c# view pdf, asp.net edit pdf, asp.net display excel spreadsheet, asp net show word document in browser, best pdf preview in asp net c#, asp.net show image from byte array.

C# DLLs: Insert Word Page

Add references:










Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.Word;

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

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

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

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

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

// Output the new document.

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

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

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

DOCXDocument doc1 = new DOCXDocument(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.