C#: Online Guide
How To: excel SDK
Quick to Start
  |  
Home ›› XDoc.Excel ›› C# Excel: Quick to Start

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


To Have a Quick Evaluation of XDoc.Excel 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. how to add header in pdf using itextsharp in c#, vb.net read pdf to text, vb.net extract text from pdf, how to create a thumbnail image of a pdf in c#, c# pdf editor, data matrix barcode reader c#.


Related .net document control helps:
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
c# asp.net tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
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 mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
c# asp.net image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
c# asp.net powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET


This C#.NET Excel document processing toolkit, RasterEdge XDoc.Excel 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 Excel-related tasks in their C#.NET applications. vb net pdf create thumbnail from image, merge two pdf byte arrays c#, c# pdf embed font, itextsharp replace text in pdf c#, how to crop a pdf in c#, c# itextsharp watermark image, c# draw pdf.


Using this C#.NET Excel document processor control, you can easily and quickly complete Excel document creating and loading, Excel document conversion, Excel 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. asp.net edit pdf, best pdf viewer control for asp.net, asp.net show image from byte array, asp.net mvc pdf viewer free, asp.net open excel file on client, preview pdf in asp.net, asp.net tiff viewer.


As you know, there're various reliable Excel document processing features that can be implemented in C#.NET programming. And you may want to have a quick testing on RasterEdge XDoc.Excel 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 Excel files, and save into a new Excel 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 Excel Files and Save



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


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


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use namespace "RasterEdge.Imaging.Basic";


Use namespace "RasterEdge.XDoc.Excel";


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




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

// Combine two Excel files.
XLSXDocument.CombineDocument(inputFilePaths, outputFilePath);