High-Speed C# .NET Excel Spreadsheet API Library
Document Solutions for Excel, .NET Edition, is a high-performance spreadsheet API that lets you programmatically read, create, edit, and write Excel files using C# or VB. It supports up to .NET 8+, .NET Framework, and Xamarin for building cross-platform applications—all with zero dependencies on Excel.
- Create, load, edit, and save Excel XLSX spreadsheets
- Save to XLSX, PDF, HTML, CSV, JSON, Images , and SpreadJSfiles
- Deploy locally, inhouse or to Cloud, including Azure and AWS
- Includes a JavaScript Data Viewer to view and optionally interact with data documents on the client
.NET Excel API Library Overview
Document Solutions for Excel, .NET Edition, allows developers to load, create, modify, calculate, save, and convert Excel documents at scale. Read and write .XLSX files, create and share reports with defined templates, and deploy spreadsheets across .NET desktop and web applications.
Ultimate C# .NET Excel API Library Solution
Advanced API Features for Seamless Spreadsheet Management
Built on the powerful Excel Object Model, this feature-rich API enables seamless creation, editing, conversion, and export of Excel files in C# or .NET. It supports formulas, charts, pivot tables, data validation, styling, and high-performance processing for enterprise applications
Build Professional .NET Excel Reports Using .XLSX Templates
Define Excel templates in .NET to automate and quickly generate comprehensive .xlsx reports such as invoices, sales reports, receipts, shipping labels, purchase orders, and more. Bind data from multiple data sources, create reports using chart templates, sparklines, tables, while also supporting Microsoft Excel formulas for fast data calculation and conditional formatting.
Cross-Platform .NET Development: Build Once, Deploy Anywhere
With full .NET Support for Windows, Linux, and MacOS, you can develop for any .NET platform and all major operating systems with a single code base. Use in your apps for .NET Core, .NET Framework, Mono, Xamarin.iOS, and Xamarin.Android. Deploying locally or to the Cloud allows you to be everywhere, including Azure, AWS, AWS Lambda, and more.
Complete Client-Server Spreadsheet Solution
Document Solutions for Excel also includes a Data Viewer, a JavaScript component that allows developers to build cross-platform web applications to view Excel .xlsx, CSV, Spreads, Arrow, and Parquet data files across browsers. The optional Professional Viewer additionally includes interactive operations and the ability to display data visualization objects.
Note - for advanced client-side editing functionality, developers can use the separate SpreadJS JavaScript spreadsheet to provide a complete Excel-like editing experience on the client. Changes can then be sent back down to the server for any further processing using Document Solutions for Excel.
C# .NET Excel API Features
-
Generating Excel Files
Easily Generate Excel .xlsx Files in C# Quick Start - Generating XLSX from Scratch
Create a new Excel workbook from scratch and save it as an XLSX file using .NET, ideal for automating Excel file generation in .NET applications.
Import/Export Excel .xlsx using a .NET Excel API Open & Save Workbook
Easily open a workbook, make modification, and save the changes back to a new file in various formats
.NET C# Data-Bound Excel Template Example Custom Data-Bound Excel Reports
Generate customizable, data-bound Excel reports that are dynamically populated with live data, enabling easy creation of tailored, real-time reporting solutions within your application.
Programmatically Manage XLSX Worksheets - Add, Delete, Move, & Copy Worksheet Management
Manage worksheets within a workbook by adding, deleting, copying, and protecting sheets, along with advanced capabilities for organizing and securing data.
JSON Data Binding to Excel Files using C# Data Binding
Bind various data sources such as JSON, DataTables, or custom objects to worksheets, cells, or tables in Excel spreadsheets, enabling dynamic, real-time data integration for reports.
Add Form Controls to .NET Excel XLSX File Form Controls
Easily create and read tagged, structured paragraphs, ensuring your documents are accessible and well-organized. Enhance document navigation and searchability with precise text formatting and semantic tagging.
Set XLSX Themes and Colors Themes & Colors
Customize the appearance of Excel workbooks by applying built-in or custom themes and color schemes, enhancing readability and visual appeal.
Programmatically Convert Workbooks to Formats Including: PDF, CSV, JSON, PDF, SJS, HTML, IMG File Operations
Perform a variety of file operations including importing, exporting, and converting Excel workbooks to multiple formats such as .xlsx, .csv, .json, PDF, and more.
- Generating Excel Files
- Open & Save Workbook
- Custom Data-Bound Excel Reports
- Worksheet Management
- Data Binding
- Form Controls
- Themes & Colors
- File Operations
-
Import/Export Features
Import and Export .xlsx from .NET applications Import/Export XLSX
Import and export Excel .xlsx files from your .NET C# application, allowing users to load and save workbooks with full control over data, formatting, and structure.
Import, Convert, and Export CSV in .NET Applications Import/Export CSV
Enables seamless CSV file import and exporting using the .NET Excel API and C#; supporting advanced open and save options.
Create Line Charts With .NET XLSX API Example Import/Export JSON Stream
Importing and exporting JSON streams for workbooks and worksheets, enabling seamless integration with SpreadJS.
Export a server-side Excel file to PDF Export to PDF
Export Excel workbooks, worksheets, or selected data to high-quality PDFs with customization options.
Save HTML to an Excel File using a .NET Excel API Library Export to HTML
Easily export workbooks, worksheets, or specific ranges to HTML with customizable formatting.
Import Data to .XLSX Using a .NET Server-Side Excel API SDK Import Data
Effortlessly import data from collections, arrays, tables, or entities into a .NET server-side Excel worksheet.
Import Data Table to .NET Excel Instance Import DataTable
Easily import DataTable objects into a .NET Excel worksheet. Define table columns, populate data, and insert it into a spreadsheet for seamless data management.
Import Data From Existing Excel Files into .NET Applications Import Portions of Data from Existing Files
Quickly import only data from a .NET worksheet, table, or cell range without loading the entire Excel file using C#.
Convert Excel worksheets, cells, and shapes to images using C# Convert to Image
Convert .NET Excel worksheets, cell ranges, and shapes to images in PNG, JPG, SVG, or GIF format.
Import and export Excel Macros .xlsm using C# Import/Export Macros .xlsm
Import and export macro-enabled Excel files (.xlsm) while preserving macros, form controls, and ActiveX controls.
Import and export SpreadJS files (.sjs, .ssjson) Import/Export to SpreadJS Files .sjs
Easily import and export SpreadJS files (.sjs, .ssjson, .json), using C#, while preserving complex spreadsheet structures and features.
Import and Export Excel Template file .xltx using C# Import/Export Excel Templates .xltx
Easily import and export Excel template files (.xltx) to streamline spreadsheet creation and reuse predefined layouts.
Convert Excel Templates .xltx to PDF using .NET C# Convert Excel Templates .xltx to PDF
Convert .xltx templates to interactive PDF forms (AcroForms) while preserving checkboxes, dropdowns, and option buttons for user interaction.
- Import/Export XLSX
- Import/Export CSV
- Import/Export JSON Stream
- Export to PDF
- Export to HTML
- Import Data
- Import DataTable
- Import Portions of Data from XLSX
- Convert to Image
- Import/Export Macros .xlsm
- Import/Export to SpreadJS Files .sjs
- Import/Export Excel Templates .xltx
- Convert Excel Templates .xltx to PDF
-
Data Visualization Features
Create and Delete Excel Charts using C# Create & Delete Charts
Easily create and delete charts in Excel worksheets, providing dynamic visualizations with customizable data ranges and chart types.
Add Column and Bar Charts in XLSX Files Column & Bar Charts
Create dynamic column and bar charts to visually compare and present data in Excel, supporting various chart types like stacked, clustered, and 3D options.
Create Line Charts With .NET XLSX API Example Line & Area Charts
Generate line and area charts to visualize trends over time, allowing for smooth data comparison and analysis in Excel with customizable styles and data ranges.
Programmatically Created XLSX Pie Chart Example Pie & Donut Charts
Create visually engaging pie and donut charts to represent proportions of a whole, with options for customizing slices, labels, and chart styles in Excel.
.NET Generated Bubble Chart Scatter & Bubble Charts
Create scatter and bubble charts to display relationships between data points, with support for customizing axis ranges, chart styles, and bubble sizes.
Combo Charts Example Combo Charts
Create combo charts by combining multiple chart types (e.g., column, line) in one visualization to highlight different data series with varied chart styles.
Create Waterfall Charts using C# Waterfall Charts
Create waterfall charts to visualize the cumulative effect of sequentially introduced positive or negative values, useful for financial analysis and data flow tracking.
Create Specialized Charts Using a .NET Excel API - Radar, Surface, and Treemaps Specialized Charts
Create specialized charts like radar, surface, and treemap charts to represent complex data in unique, insightful ways that enhance data interpretation and analysis.
Add Pivot Charts with a .NET Excel Library Pivot Charts
Create pivot charts to visualize aggregated data from pivot tables, enabling dynamic data exploration and interactive reporting within Excel.
Add Sparklines Sparklines
Insert sparklines into Excel worksheets to display compact, mini charts within cells, providing a quick visual summary of data trends and patterns.
Add Shapes to .xlsx using C# Shapes & Pictures
Add and manipulate shapes and pictures within Excel worksheets, enhancing document presentation with customizable graphics, logos, and visual elements.
- View Demo and Code
- Shapes and Pictures Documentation
Apply Conditional Formatting using a .NET Excel API Conditional Formatting
Apply conditional formatting to Excel cells, allowing dynamic styling based on data values, such as color scales, data bars, or icon sets, to improve data visualization.
- Create & Delete Charts
- Column & Bar Charts
- Line & Area Charts
- Pie & Donut Charts
- Scatter & Bubble Charts
- Combo Charts
- Waterfall Charts
- Specialized Charts
- Pivot Charts
- Sparklines
- Shapes & Pictures
- Conditional Formatting
-
Data Analysis
Create XLSX Tables Create Tables
Create and manage structured tables in Excel, allowing for efficient organization, sorting, filtering, and formatting of large datasets.
Add Excel Table Slicers using C# Table Slicers
Add slicers to Excel tables for interactive filtering, allowing users to easily control data visibility and improve analysis with visual filtering tools.
.NET Excel Pivot Table Pivot Tables
Create and manipulate pivot tables to summarize and analyze large datasets, enabling users to dynamically explore and visualize data in Excel.
Add Pivot Table Slicers Pivot Slicers
Add slicers to pivot tables for intuitive and interactive data filtering, enabling users to quickly adjust data views and improve analysis.
Group and Subtotaling Rows and Columns Grouping & Subtotaling
Group rows or columns and apply subtotals to organize large datasets, improving navigation and analysis in Excel worksheets.
Advanced Sorting Excel Files Using a .NET Excel API Advanced Sorting
Perform advanced sorting on Excel data, including sorting by values, colors, fonts, or icons, for enhanced data organization and analysis.
Apply Custom filters in Excel Files Custom Filters
Apply custom filters in Excel to refine data views based on specific conditions such as numbers, text, dates, colors, and icons.
Create What-If Analysis in .NET Excel server-side apps using C# What-If Analysis (Goal Seek, Scenario Manager)
Perform What-If analysis using tools like Goal Seek and Scenario Manager to model different outcomes and find the necessary input values for a desired result.
Tracing Precedents/Dependents in Excel Programmatically Example Error Checking & Tracing Precedents/Dependents
Trace and identify precedent and dependent cells in Excel to analyze formulas and troubleshoot errors in worksheets.
Set Cross-Sheet References and Linking in XLSX Cross-Sheet References & Linking
Link data across multiple workbooks with cross-workbook formulas, enabling users to reference and update values from external Excel files.
- Create Tables
- Table Slicers
- Pivot Tables
- Pivot Slicers
- Grouping & Subtotaling
- Advanced Sorting
- Custom Filters
- What-If Analysis (Goal Seek, Scenario Manager)
- Error Checking & Tracing Precedents/Dependents
- Cross-Sheet References & Linking
-
Powerful Calculation Engine
.NET Excel Formula Support in Server-Side Generated File Formulas (450+ Excel Functions)
Leverage hundreds of built-in functions and operators for complex calculations, external formulas, and custom functions tailored to your needs.
Custom .NET Excel Functions Create Custom Functions
Custom functions allow you to easily create new calculation functions for use in cell formulas using custom logic to return a value in your .NET app.
Set Dynamic Formulas using C# and a .NET Excel API Set Dynamic Array Formulas
Use dynamic array formulas to perform multiple calculations across a range of cells, allowing for efficient data manipulation and results display in Excel.
Enable Iterative Calculations Iterative Calculation
Enable iterative calculation in Excel to repeatedly calculate formulas until a specific condition is met, such as a set number of iterations or a desired result difference.
Formula parsing options in .NET generated Excel File Formula Parse & Parse Format Options
Parse and format Excel formulas using a syntax tree, offering control over the conversion of formulas between A1 and R1C1 reference styles and enabling in-depth formula manipulation.
Formula Tracing in .NET Excel Files Formula Tracing
Trace formula dependencies in Excel by identifying precedent and dependent cells, helping users understand the flow of data and diagnose issues in complex formulas.
Set Cross-Workbook Formulas in .NET Server-Side Apps Cross Workbook Formula
Use cross-workbook formulas to reference and perform calculations on data from external Excel workbooks, facilitating dynamic and linked data across multiple files.
Localized Formulas in XLSX Localized Formulas
Set and retrieve formulas in Excel that automatically adjust to local language conventions, ensuring correct function names based on the user's regional settings.
Defined Names in Excel Formulas Defined Names
Defined names simplify formulas by assigning names to tables, ranges, and constants, making calculations easier to read and manage.
Set Table Formulas using a C# Excel API Set Table Formula
Set and apply structured table formulas in Excel to dynamically reference and calculate data within tables using custom column names and row specifiers.
Apply Pivot Table Formulas using a .NET Excel API Pivot Table Formulas
Apply custom calculations to pivot table fields using built-in functions and manage the visibility of totals and layout options for enhanced analysis.
Asynchronous Functions on Server-Sider API Asynchronous Functions
Enhance performance by running functions asynchronously, enabling multiple calculations to occur concurrently without blocking other tasks.
C# .NET Excel Linked Picture Example Linked Picture
Create dynamic, real-time snapshots of Excel ranges that automatically update when the original data changes, ideal for dashboards and reports.
Programmatically Ignore Errors in .NET generated .xlsx Ignore Errors in Excel
Prevent the display of error indicators, like the green triangle, in Excel cells by ignoring specific types of errors in a given range.
Set Excel Calculation Mode using C# Excel Calculation Mode
Control Excel’s calculation behavior by selecting between automatic, semiautomatic, and manual modes to optimize performance, especially with large workbooks or when exporting data.
- Formulas (450+ Excel Functions)
- Create Custom Functions
- Set Dynamic Array Formulas
- Iterative Calculation
- Formula Parse & Parse Format Options
- Formula Tracing
- Cross Workbook Formula
- Localized Formulas
- Defined Names
- Set Table Formula
- Pivot Table Formulas
- Asynchronous Functions
- Linked Picture
- Ignore Errors in Excel
- Excel Calculation Mode
-
Cell Level Features
Excel Cell Types – Check Boxes, Combo Boxes, Radio List, Hyperlink Cell Types
Enhance spreadsheet interactivity with button, checkbox, combo box, and hyperlink cell types for custom user interactions.
Range Template Cell Range Template Cell
Use Range Template cells to apply structured, reusable layouts to multiple cell ranges while binding data dynamically.
Data Validation in Generate XLSX File Data Validation
Ensure data accuracy in Excel files by programmatically applying validation rules that restrict input formats, set value ranges, and display error messages.
Set Excel Cell Styles Using a .NET Excel API Set Styles for Cells
Customize cell styles using an .NET Excel API, including fill styles, fonts, borders, alignment, and number formats.
Programmatically Merge Excel File Cells using C# Merge Cells
Combine multiple cells into one using the .NET Excel API, preserving only the top-left cell’s data.
Auto Merge Cell in XSLX Auto Merge Cells
Automatically merge adjacent cells with identical content when exporting spreadsheets to various formats, improving readability.
Protect Cell Ranges in Excel Files Protect Cell Range
Secure worksheet data by locking specific cell ranges or hiding formulas, ensuring controlled access and data integrity.
Add Hyperlinks to Excel Files using C# Excel API Hyperlinks
Insert and manage hyperlinks in Excel workbooks to reference external files, web pages, email addresses, or specific locations within a workbook.
Barcodes in Spreadsheets using .NET API Barcodes
Generate and display barcodes in spreadsheet cells, supporting various barcode types and conversion to images for enhanced document processing.
Support for in Rich Text Cells Rich Text in Cells
Apply rich text formatting in spreadsheet cells to customize font styles, colors, sizes, and effects for enhanced data presentation.
- Cell Types
- Range Template Cell
- Data Validation
- Set Styles for Cells
- Merge Cells
- Auto Merge Cells
- Protect Cell Range
- Hyperlinks
- Barcodes
- Rich Text in Cells
-
Advanced Features
Generate Reports using Excel Templates and a C# .NET API Excel Templates
Create reusable, data-driven Excel reports using the API’s Excel template support with dynamic data binding.
Add or Manage Excel XLSX Comments using a .NET API Comments
Add, format, and manage comments in spreadsheets to provide context and annotations without cluttering cells.
Programmatically Find and Replace Excel Data using C# Find & Replace Data
Easily locate and update data across large spreadsheets using the .NET Excel API's find and replace functionality, supporting values, formulas, and formatting.
Digital Signatures in Excel using C# .NET Digital Signatures
Digitally sign Excel spreadsheets using the .NET Excel API to ensure document authenticity. Add visible or invisible signatures, verify signatures, and manage signature lines within worksheets.
Print Excel Files using a .NET Excel API Print
Easily print and set custom printing options for workbooks or worksheets using the .NET Excel API with the PrintOut method.
Capture debug, error, warning, and info logs using a .NET XLSX Library Enable Logging
Supports logging to capture debug, error, warning, and info logs for troubleshooting.
Generate Paginated .xlsx Reports using a .NET Excel API Library Generate Paginated Spreadsheet Reports
Generate paginated spreadsheet reports using C# to create structured, multi-page templates for invoices, catalogs, and other reports.
JavaScript Client-Side Data File Viewer Client-Side Data File Viewer
Includes a JavaScript-based client-side viewer for previewing data files, including XLSX, CSV, ARROW, PARQUET, and SpreadJS formats.
- Excel Templates
- Comments
- Find & Replace Data
- Digital Signatures
- Enable Logging
- Generate Paginated Spreadsheet Reports
- Client-Side Data File Viewer
- Support for SpreadJS Features
.NET Excel API Library Quick Start Guide
| Quick Start Guide | |
|---|---|
| 1. Download the Latest Document Solutions for Excel release or get it from NuGet. |
Download Full Trial |
| 2. Include the necessary following namespaces. |
using Grapecity.Documents.Excel; |
| 3. Create a new .NET Excel workbook using the Workbook class. | Workbook workbook = new Workbook(); workbook.Worksheets[0].Range["A1"].Value = "Hello Word!"; |
| 4. Save the .NET Excel workbook to a local Excel (XLSX) using the Save method. | workbook.Save ("HelloWord.xlsx"); |
Learn more with our complete quick start guide for Document Solutions for Excel, .NET Edition.
Easy Licensing & Distribution
Access your Document Solutions Distribution Key(s) through your MESCIUS account after purchase.
Licensing FAQs
Document Solutions offers flexible tiered licensing options for single-location, multi-location or cloud use, and individual and team licenses.
Request a Trial Key
Our sales team can provide 30-day trial Distribution Keys for Document Solutions for Excel and the JavaScript Data Viewer, Document Solutions Data Viewer, upon request, allowing you to deploy our APIs during your trial period.
Have Questions? We're Here to Help
Email sales@mescius.com to discuss your project needs with our product specialists or request a personalized demo with the Product Manager.
Document Solutions Media
What's New in Document Solutions for Excel v8.2
How to Create Excel XLSX Using a .NET C# Server-Side API
How to Import and Export Excel XLSX in .NET Applications Using C#
Introducing JavaScript Document Solutions Data Viewer
Add Form Controls to Excel Spreadsheets in .NET, C#, VB
Trusted by the World's Leading Companies
"The speed to build what we needed and the level of ease of use of controls are why we chose GrapeCity [now known as MESCIUS]. It was a perfect fit."
Spiro Skias - CGI