Skip to main content
Any Framework

Syncfusion XlsIO library is a native .NET class library that can be used to create and modify Microsoft Excel files. It provides a full-fledged object model that facilitates accessing & manipulating the Excel documents (XLSX, XLS, XLSM, XML, XLTM and ODS), CSV and .TXT files.

Published
Oct 19, 2021
5y ago
Total Downloads
1.0M
1,049,811

Install

dotnet add package Syncfusion.XlsIO.AspNet.Mvc4 --version 19.3.0.46

No framework information available.

README

Syncfusion Essential XlsIO is a high-performance and feature-rich .NET Excel library to work with Microsoft Excel documents. This Excel library allows you to create, read, and edit Microsoft Excel files in ASP.NET MVC application. It offers APIs to support Microsoft Excel equivalent features along with conversion APIs to easily convert Excel files to PDF, images, and more.

Key features

Getting Started

Installation commands

  • Simply run Install-Package Syncfusion.XlsIO.AspNet.Mvc4 from the Package Manager Console in Visual Studio to fetch the NuGet package.
  • If you already have Syncfusion.XlsIO.AspNet.Mvc4 for .NET and want to upgrade the version, please run Syncfusion.XlsIO.AspNet.Mvc4 to get the latest version.
  • You can run the following snippets in your environment to see how Syncfusion.XlsIO.AspNet.Mvc4 works.

Create an Excel document using XlsIO

The following code snippet explains how to create an Excel document.

//Initialize ExcelEngine.
using (ExcelEngine excelEngine = new ExcelEngine())
{
    //Initialize IApplication.
	IApplication application = excelEngine.Excel;
	//Set the default version as Xlsx.
	application.DefaultVersion = ExcelVersion.Xlsx;
    //Create a new workbook with one worksheet.
	IWorkbook workbook = application.Workbooks.Create(1);
	//Get the worksheet into IWorksheet.
	IWorksheet worksheet = workbook.Worksheets[0];
	//Set a value to Excel cell.
	worksheet.Range["A1"].Value = "Hello World";
    //Save the Excel document.
	workbook.SaveAs("Output.xlsx", HttpContext.ApplicationInstance.Response, ExcelDownloadType.Open);
}

Read an Excel document using XlsIO

The following code snippet explains how to read an Excel document.

//Initialize ExcelEngine.
using (ExcelEngine excelEngine = new ExcelEngine())
{
    //Initialize IApplication.
    IApplication application = excelEngine.Excel;
	//Set the default version as Xlsx.
    application.DefaultVersion = ExcelVersion.Xlsx;
    //Load an existing workbook into IWorkbook.
    IWorkbook workbook = application.Workbooks.Open(Server.MapPath("App_Data/Sample.xlsx"));
    //Save the Excel document.
	workbook.SaveAs("Output.xlsx", HttpContext.ApplicationInstance.Response, ExcelDownloadType.Open);
}

File Formats supported by XlsIO

Syncfusion Essential XlsIO supports .xls, .xlsx, .xlsm, .xltm, .xltx, .xml, .csv, .txt and .ods file formats.

Compatible Microsoft Excel Versions

  • Microsoft Excel 97-2003
  • Microsoft Excel 2007
  • Microsoft Excel 2010
  • Microsoft Excel 2013
  • Microsoft Excel 2016
  • Microsoft Excel 2019

Resources

Support and feedback

License

This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a licnense here or start a free 30-day trial here.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 26,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1600+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.

This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. To acquire a license, you can purchase one here or start a free 30-day trial here.


[email protected] | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

Changes from Previous Version

No structural changes between v19.3.0.45 and v19.3.0.46.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.