C#: Online Guide
How To: Word SDK
Quick to Start
Home ›› XDoc.Word ›› C# Word: Quick to Start

How to C#: Quick to Start Using XDoc.Word

To Have a Quick Evaluation of XDoc.Word in Visual C# Console Application

As a leading professional third-party SDK supplier in the field of image and document management, RasterEdge has always been devoted to providing various effective and fully-functional imaging solutions for developers who are working on different .NET developing applications. vb.net pdf to image, itextsharp add image to existing pdf vb.net, vb.net print pdf to default printer, itextsharp vb.net pdf to text, barcode reader using vb net source code, pdf417 barcode reader c#.

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#
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net mvc word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET

This C#.NET Word document processing toolkit, RasterEdge XDoc.Word SDK for .NET is one of the most strongly-featured and mature document imaging library toolkits on the market, which is designed to help developers implement Word-related tasks in their C#.NET applications. convert html to pdf using itextsharp vb.net, convert pdf to svg c#, convert text to pdf c#, how to convert pdf to word using asp.net c#, how to show page numbers in pdf using itext c#, c# pdf bookmarks, vb.net delete image from pdf file.

Using this C#.NET Word document processor control, you can easily and quickly complete Word document creating and loading, Word document conversion, Word document annotation and more in any type of a 32-bit or 64-bit .NET application, including ASP.NET web service and Windows Forms for any .NET Framework version from 2.0 to 4.5. how to display pdf file in asp.net c#, asp.net core pdf editor, display image in asp.net core mvc, pdf preview in asp.net c#, asp net replace text fro pdf free, pdf viewer in mvc c#, asp.net excel viewer.

As you know, there're various reliable Word document processing features that can be implemented in C#.NET programming. And you may want to have a quick testing on RasterEdge XDoc.Word after downloading its free trial package online.  To meet your requirement, on this quick to start page, we will tell how to create a C# console application, merge two Word files, and save into a new Word file.

Create a C# Console Application

Open Visual Studio and click "New" from toolbar. Note, Visual Studio 2005 and above versions are available;

Choose "C# Language" and "Console Application" respectively to create a project.

Sample C# Code for Merging Two Word Files and Save

By following steps below, your C# project will merge the two input Word files according to priority, and then create a new Word file to a defined output path.

Choose "C# Language" and "Console Application" respectively to create a project.










Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.Word;

Copy of the following C# sample code to your application.

String inputFilePath1 = Program.RootPath + "\\" + "1.docx";
String inputFilePath2 = Program.RootPath + "\\" + "2.docx";
String outputFilePath = Program.RootPath + "\\" + "Output.docx";
String[] inputFilePaths = new String[2] { inputFilePath1, inputFilePath2 };

// Combine two Word files.
DOCXDocument.CombineDocument(inputFilePaths, outputFilePath);