High-Performance .NET Excel API library
List of Services
You have full control over your spreadsheets without relying on Excel.
- Supports .NET 6+ , .NET Core, .NET Framework, and Xamarin
- Create, load, edit, and save spreadsheets
- Parse, convert, and share spreadsheets
- Save as XSLX, PDF, HTML, CSV, JSON, image, or SpreadJS file
- Create custom reports using Excel (.xslx) templates
- Deployment on Azure and AWS
- Calculate formulas and format cells

Ask anything!
Please share your vague concerns and questions about DsExcel with MESCIUS's expert team. We empathize with your concerns and are here to help.
.NET Excel APIs. Done right. Look no further.
MESCIUS Now Offers a Complete Excel API for .NET Developers
.NET Nuget package
DsExcel .NET can process large amounts of data in an efficient manner, making it possible to process large amounts of data in an instant.
< Performance Test (Windows) >
Try DsExcel .NET today.
Click the tabs below to get new ideas through workflows for a variety of real-world situations.
Move Excel to the Web powered by SpreadJS.
Using SpreadJS together, you can provide your end users with the same look and feel as Excel, while:
On the backend side, you can use the DsExcel API to quickly process Excel data received from SpreadJS using powerful server resources.
Additionally, you can enhance your security capabilities by performing secure data and Excel formula/calculation tasks on the server side.

DsExcel .NET Key Features
DsExcel .NET Demo

Getting Started with DsExcel .NET
This step-by-step tutorial will help you start coding spreadsheets using DsExcel .NET right away. The tutorial will teach you various features and even provide code samples you can download and apply immediately.

Learning DsExcel .NET by Feature
Explore plenty of example code demonstrating how to use the basic features of DsExcel .NET.

DsExcel .NET Showcase
You can see the full code demonstrating how to create an Excel file. You'll also learn how to open an existing Excel file on the server side and update its contents.

DsExcel .NET Template
DsExcel introduces a new template approach, featuring a comprehensive syntax and API that allows you to bind Excel documents to data and generate advanced-looking Excel reports. With flexible syntax and simple notation for data expansion and formulas, the new template syntax and API allow you to easily define Excel templates and generate Excel reports that support a variety of use cases.
Turn Excel Templates into Powerful Reports
Step 1. Create a DsExcel Template
After pre-entering the "DsExcel template syntax" above the specific Excel cells where the data will be inserted, create a form or resource folder on the server and save it. The template syntax reflects the data structure of your designed JSON or Java class.

Step 2. Bind the Data Source to the Template
Load the Excel template saved in Step 1 using DsExcel's Open method. Bind JSON, DataSet, Datable, Array, and other data to the loaded form using the AddDataSource method.
// Create a workbook
var workbook = new GrapeCity.Documents.Excel.Workbook();
// Load template file named "Template_FamilytInfo.xlsx"
var templateFile = this.GetResourceStream("xlsx\\Template_FamilyInfo.xlsx");
workbook.Open(templateFile);
// Get data from json file
string jsonText = string.Empty;
using (Stream stream = this.GetResourceStream("Template_FamilyInfo.json"))
using (StreamReader reader = new StreamReader(stream))
{
jsonText = reader.ReadToEnd();
}
// Create JsonDataSource
var datasource = new JsonDataSource(jsonText);
// Add data source
workbook.AddDataSource("ds", datasource);
Step 3. Save as Excel
Using the ProcessTemplate function, enter actual data on the form in Step 2, and then use the Save function to save it as an Excel file.
// Called to process the template
workbook.processTemplate();
// Save as Excel file
workbook.save("JsonFile.xlsx");

Ask anything!
Please share your vague concerns and questions about DsExcel with MESCIUS's expert team. We empathize with your concerns and are here to help.
MESCIUS Developer Forum
DsExcel .NET v9.2
New features

🚀 Workbook and Excel I/O Enhancements
- Lossless XLSX Handling for Equation Shapes : Preserves original Office Math structures and Shape Format settings when opening and saving workbooks
- Custom XML Part API : Add, retrieve, enumerate, update, and remove workbook-level XML content via ICustomXmlPartCollection and ICustomXmlPart
- Hidden Defined Names (IName.Visible) : Keep helper names available to formulas and automation logic while hiding them from the Name Manager
- Form Controls Inside Grouped Shapes : Control properties and group hierarchy preserved across XLSX, SJS, and SSJSON workflows
💡 Pivot Table Grouping API Support
- Date Grouping : Group by second, minute, hour, day, month, quarter, or year with optional automatic layout placement
- Number Range Grouping : Define start, end, and interval values to replace displayed items with range-based bins
- Custom Grouping : Combine selected PivotItems into named, nestable groups
- Ungrouping : Removes grouping and restores the original layout, with round-trip support across XLSX, SJS, and SSJSON
✨ SpreadJS Interoperability and Lossless I/O
- Automatic AI Function Prefix Conversion : Converts between SJS.AI and AI prefixes during SJS and SSJSON import and export with no additional API required
- DataManager-Sourced Pivot Table Round-Trip : XLSX export and IPivotTable.Update supported when a complete PivotCache is present
- SpreadJS v19.2 Feature Preservation : Lossless I/O for Focus Cell, custom pivot subtotals, rounded cell borders, watermark background image options, and cell scenarios
✅ Additional Updates
- This release also includes configurable invalid formula handling (InvalidFormulaHandling), a CSV formula injection mitigation option, XLTX template file support in DsDataViewer, local performance benchmark packages for .NET and Java, and expanded API reference documentation.
Getting Started with DsExcel .NET
Let's learn how to create an Excel document using the DsExcel .NET API on Windows, Mac, and Linux.
DsExcel .NET Blog
List of Services
-
How to Programmatically Parse Formulas in Excel Using C#List Item 1Let's learn how to parse existing formulas in an Excel spreadsheet and modify them to suit your needs in C#.
-
How to add dynamic array formulas programmatically using C# in ExcelList Item 2Explains how to add dynamic array formulas to cells in C# and save an Excel file containing all the formulas.
-
Creating Excel Files Using Excel 2016-2019 Features in C# .NET - Part 2List Item 3This article explains how to implement Microsoft Excel 2016 charts using DsExcel in a C# application to create a sales dashboard that can be saved and viewed in Excel.
DsExcel .NET Free Trial
Purchase Procedure
Click on each button to see detailed information about each step of the purchasing process.




