Excel spreadsheet file formats processing API for C# .NET

Load, render, and manipulate XLS, XLSX, XLSM, XLT, ODS, CSV, and other Microsoft Excel file formats on .NET Core, and Xamarin platforms. Build spreadsheet processing apps in ASP.NET and VB.NET to convert Excel to PDF, Excel to JPG, and many other formats.

Download Free TrialView All APIs

High-performance Excel spreadsheet processing in .NET

Aspose.Cells for .NET is a reliable and feature-rich library enabling .NET developers to create, load, render, and export Excel spreadsheet files within C#, ASP.NET, and VB.NET apps. Using this library, you can read, view, edit, and write Excel sheets and perform advanced tasks such as calculating formulas, managing charts and pivot tables, and formatting text in spreadsheets. Furthermore, you can also work with features like managing worksheet rows, columns, and cells, applying conditional formatting, manipulating data validation rules, named ranges, and much more. Aspose.Cells for .NET API supports a wide range of well-known file formats such as XLS, XLT, XLSM, XLSX, XLTX, XLTM, ODS, CSV, TSV, and HTML.

There is no dependency on Microsoft Excel or any external software while using Aspose.Cells for .NET, allowing users to enjoy a fully independent, cross-platform spreadsheet manipulation experience. Developers can build smart Excel file conversion apps to flawlessly convert Excel to PDF, Excel to JPG, Excel to HTML, and other file types using this spreadsheet processing API for C# .NET.

Getting Started

Please check the following information to correctly set up and use Aspose.Cells for .NET API. Please also refer to the System Requirements page for a list of prerequisites to successfully set up the Excel Documents API for .NET

Aspose.Cells for .NET Installation

To set up Aspose.Cells for .NET on your system, please directly download the DLLs or the MSI Installer from the downloads section. Or, you can use the NuGet package for the .NET spreadsheet processing API installation. The package manager command is given below.

PM> Install-Package Aspose.Cells

How to Convert Excel to PDF in .NET and Quickly Merge Excel Workbooks

Aspose.Cells for .NET API enables .NET developers proficiently convert Microsoft Excel workbooks to different file formats. Converting Excel to PDF is easy using the .NET Excel API that lets you convert XLS to PDF and XLSX to PDF within your .NET file conversion apps. Additionally, you can merge Excel workbooks and save the processed document as a unified file with the help of the .NET spreadsheet processing API.

Convert Excel to PDF in .NET

Upgrade your .NET file converter apps by integrating the Excel to PDF conversion functionality using Aspose.Cells for .NET library. Effortlessly convert XLS and XLSX files to PDF format using a minimum amount of code. Please refer to the following information and sample coding to convert Excel to PDF in the .NET platform:

  • Create an instance of the Workbook class and add the Excel document you wish to convert.
  • Save the Excel document to PDF format using the Save method. Specify PDF format using the SaveFormat Enumeration.
// Instantiate the Workbook object with the Excel file
Workbook workbook = new Workbook("SampleExcel.xls");
// Save the document in PDF format
workbook.Save("outputPDF.pdf", SaveFormat.Pdf);

Merge MS Excel Workbooks in .NET

Programmatically merge multiple Excel workbooks and combine them into a single Excel file with the help of Aspose.Cells for .NET API. Enhance your .NET document merger apps by injecting MS Excel workbooks merger functionality. Please review the below-given code snippet and the information for combining multiple workbooks:

  • Create two instance of the Workbook class, one each for the two workbooks to be combined.
  • Merge the two workbooks using the Combine method
  • Save the combined Excel workbook using the Save method.
// Define the first source workbook
// Open the first excel file.
Workbook SourceBook1 = new Workbook(dataDir+ "SampleChart.xlsx");

// Define the second source workbook.
// Open the second excel file.
Workbook SourceBook2 = new Workbook(dataDir+ "SampleImage.xlsx");

// Combine the two workbooks

// Save the target book file.

To check more working examples of Aspose.Cells for .NET API, please visit the GitHub examples page. You can view, edit, convert, merge, split, annotate, watermark, parse, compare, compress, or search the Excel documents from anywhere using your mobile devices. Please check Aspose.Cells Free Online Apps for on-the-fly Excel spreadsheet manipulation.

GUI controls and advanced formula calculations in .NET

Quickly generate professional-looking spreadsheets complete with pivot tables and charts using the GUI controls offered by Aspose.Cells for .NET API. Help yourself create interactive desktop and web-based Excel spreadsheet apps without the need for extensive coding. On top of the Graphical Interface features, this .NET spreadsheet processing library supports many standard and advanced functions, operators, and a comprehensive formula calculation system capable of handling complex formulas.


1. How can I convert Excel documents in .NET?

Converting Microsoft Excel documents in .NET is quick and easy using Aspose.Cells for .NET API. You can convert Microsoft Excel spreadsheets in .NET to different file formats using minimum coding.

2. How long it takes to convert or process Excel spreadsheets?

The .NET spreadsheet API offers lightning fast processing speeds and carries out document conversion and processing very quickly.

3. Is it safe to process MS Excel documents using a the .NET spreadsheet processing API?

Of course! You can rest assured about the security of your documents while processing them using Aspose.Cells for .NET API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I process Microsoft Excel documents on Mac OS, Windows, or Linux?

Yes, the .NET API works across different OS, frameworks, and operating environments. You can use it on the platform of your choice. The .NET Excel documents processing library does not require any additional software installation to work.

Looking for help?

Checkout our support channels for help with your questions related to Aspose product API features and working.

Ready to get started?

Download Free Trial View All APIs