![]() |
VOOZH | about |
dotnet add package Aspose.Cells --version 26.6.0
NuGet\Install-Package Aspose.Cells -Version 26.6.0
<PackageReference Include="Aspose.Cells" Version="26.6.0" />
<PackageVersion Include="Aspose.Cells" Version="26.6.0" />Directory.Packages.props
<PackageReference Include="Aspose.Cells" />Project file
paket add Aspose.Cells --version 26.6.0
#r "nuget: Aspose.Cells, 26.6.0"
#:package Aspose.Cells@26.6.0
#addin nuget:?package=Aspose.Cells&version=26.6.0Install as a Cake Addin
#tool nuget:?package=Aspose.Cells&version=26.6.0Install as a Cake Tool
👁 Version 26.6.0
👁 NuGet
👁 .NET
👁 Docs
👁 API Ref
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
Aspose.Cells for .NET is a powerful spreadsheet management library that allows developers to create, format, and manipulate Excel files programmatically without the need for Microsoft Excel. It supports features like creating Pivot Tables, applying advanced conditional formatting, converting workbooks to multiple formats (PDF, HTML, JSON), working with charts, Smart Markers, OLE objects, dynamic array formulas, modern Excel 365 functions (LAMBDA, LET, MAP, and more), and filtering data, all using C#. With extensive support for rendering and automation, it offers a seamless and versatile solution for Excel automation in .NET applications.
Aspose.Cells for .NET also provides various Grid solutions with GUI-based .NET controls; Aspose.Cells.GridDesktop, Aspose.Cells.GridWeb, and Aspose.Cells.GridJs.
Create and Format Pivot Tables
Provides options to create, format, and remove Pivot Tables from a worksheet.
Support for Different Pivot Table Layouts
Offers predefined layouts (Compact, Outline, Tabular) for Pivot Tables.
Convert Workbook to Different Formats
Supports converting workbooks to formats like PDF, HTML, JSON, and more.
Track Document Conversion Progress
Enables tracking of conversion progress during rendering.
Set Image Resample Option for PDF Conversion
Allows resampling images during conversion to reduce PDF file size.
Access Cells of a Worksheet
Access and manipulate individual cells in the worksheet.
Add and Retrieve Data
Add data to specific cells and retrieve it as needed.
Insert and Delete Rows and Columns
Provides methods for inserting or deleting rows and columns.
Apply Styles and Formatting to Cells
Set different styles, alignment, and font properties to enhance cell formatting.
Create and Customize Charts
Supports creating and customizing different types of charts, such as Column, Line, Pie, Doughnut, Radar, and more.
Create Pivot Charts
Supports creating Pivot Charts along with Pivot Tables.
Page Break Preview
Displays the worksheet as it will print, showing the page breaks.
Normal View Mode
Default view of a worksheet showing the content without page break indicators.
Zoom Factor
Allows setting the zoom factor to adjust the size of the worksheet contents.
Freeze and Split Panes
Keeps specific rows or columns visible while scrolling through the worksheet and splits the view for easier navigation and editing.
Create Named Ranges
Create and access named ranges to refer to specific cells or ranges for easier identification and calculations.
Filter Defined Names
Filter or remove defined names present inside the workbook using
LoadDataFilterOptions.
Conditional Formatting in Worksheets
Use Aspose.Cells to apply conditional formatting based on cell value or formula.
Advanced Conditional Formatting
Apply data bars, color scales, and icon sets for enhanced conditional formatting.
Copy Method for Conditional Formatting
Copy conditional formatting settings from one cell to another using the Range.Copy() method.
Runtime Conditional Formatting
Add and remove conditional formatting dynamically using Aspose.Cells API.
Adding, Modifying, and Removing Comments
Add comments to specific cells, retrieve, modify, and remove them as needed.
Threaded Comments
Add threaded comments, allowing for discussion-like conversations in cells, similar to Excel 365.
Excel Themes and Colors
Create, apply, and customize color schemes and themes in Excel worksheets.
Custom Color Themes
Use Aspose.Cells to create custom color themes, modifying only theme colors instead of individual cells.
Extract Text from SmartArt
Extract text from the Gear Type SmartArt Shape using Shape.GetResultOfSmartArt() and GroupShape.GetGroupedShapes().
Convert SmartArt to Group Shape
Convert SmartArt into group shapes for detailed manipulation.
Add Text Box to Worksheet
Insert a text box into a worksheet and customize its properties.
Text Alignment in TextBox
Apply different text alignment settings within a text box for formatting.
Hyperlinks
Create hyperlinks to link data within worksheets for easy navigation.
Managing OLE Objects
Embed and manipulate OLE objects in worksheets using Aspose.Cells.
Set Margins
Allows setting top, left, right, and bottom margins for a worksheet.
Page Breaks
Allows inserting horizontal and vertical page breaks at specific cells.
Set Print Area and Print Titles
Provides options for setting the print area and print titles for a worksheet.
Custom Paper Size
Implement custom paper sizes for worksheet rendering and printing.
Insert Background Image
Add a background image to the worksheet using Aspose.Cells.
Auto-Filter and Custom Data Filter
Provides options for filtering data based on various conditions like text, numbers, and dates.
Fill Color Filter
Filter data based on the fill color of cells using the
AddFillColorFilterfunction.
Date, Number, and Text Filters
Provides options for filtering rows based on dates, numbers, or text criteria.
Blanks and Non-Blanks Filters
Filters rows based on whether they contain blank or non-blank cells.
Group or Ungroup Rows and Columns
Allows grouping or ungrouping rows and columns in the worksheet for better data organization.
Workbook VBA Project
Allows managing VBA projects within the workbook, including adding and modifying VBA code.
Tracing Precedents and Dependents
Provides tools for tracing precedent and dependent cells in complex worksheets to identify data relationships.
Dynamic Array Formulas (Excel 365 and Excel 2021)
Full support for modern dynamic array formulas including
FILTER,SORT,SORTBY,UNIQUE,SEQUENCE,RANDARRAY,DROP,TAKE,HSTACK,VSTACK,CHOOSEROWS,CHOOSECOLS, and other newly introduced array functions. Results spill automatically into neighboring cells based on the size of the output, with no Ctrl+Shift+Enter required. Set formulas programmatically viaCell.SetDynamicArrayFormula()and recalculate spill ranges withWorkbook.RefreshDynamicArrayFormulas(), ideal for filtered reports, sorted views, and de-duplicated lists generated server-side.
Modern Excel Functions: LAMBDA, LET, MAP
Aspose.Cells supports the latest Excel calculation engine functions including
LAMBDA(define reusable custom functions inside a workbook),LET(assign names to intermediate results inside a formula for readability and performance), and array helpers such asMAP,REDUCE,SCAN,BYROW,BYCOL,MAKEARRAY, and other newer functions added in recent Excel releases. Build, evaluate, and save workbooks that use these advanced functions on any platform without Microsoft Excel installed.
Formula Calculation Engine
A complete formula calculation engine evaluates hundreds of built-in Excel functions, user-defined functions, array formulas, and dynamic array formulas. Recalculate selected cells, individual worksheets, or the entire workbook with fine-grained control.
Set Headers and Footers
Allows adding headers and footers to worksheets, displaying information like page number, author, or date.
Insert Image in Header or Footer
Enables inserting images into headers and footers using the PageSetup class.
Script Commands
Provides script commands to format headers and footers, such as &P for page number and &D for the current date.
Setting Different Headers and Footers for Different Pages
Allows setting different headers and footers for the first, odd, and even pages.
| Format | Description | Load | Save |
|---|---|---|---|
| XLS | Excel 95/5.0 - 2003 Workbook. | ✔️ | ✔️ |
| XLSX | The Office Open XML SpreadsheetML File Format. | ✔️ | ✔️ |
| XLSB | Excel Binary Workbook. | ✔️ | ✔️ |
| XLSM | Excel Macro-Enabled Workbook. | ✔️ | ✔️ |
| XLT | Excel 97 - Excel 2003 Template. | ✔️ | ✔️ |
| XLTX | Excel Template. | ✔️ | ✔️ |
| XLTM | Excel Macro-Enabled Template. | ✔️ | ✔️ |
| XLAM | An Excel Macro-Enabled Add-In file that’s used to add new functions to Excel. | ✔️ | |
| CSV | CSV (Comma Separated Value) file. | ✔️ | ✔️ |
| TSV | TSV (Tab-separated values) file. | ✔️ | ✔️ |
| TabDelimited | Tab-delimited text file, same with TSV file. | ✔️ | ✔️ |
| TXT | Delimited plain text file. | ✔️ | ✔️ |
| HTML | HTML format. | ✔️ | ✔️ |
| MHTML | MHTML file. | ✔️ | ✔️ |
| ODS | ODS (OpenDocument Spreadsheet). | ✔️ | ✔️ |
| SpreadsheetML | Excel 2003 XML file. | ✔️ | ✔️ |
| Numbers | The document is created by Apple’s "Numbers" application, part of Apple’s iWork office suite, running on Mac OS X and iOS. | ✔️ | |
| JSON | JavaScript Object Notation | ✔️ | ✔️ |
| DIF | Data Interchange Format. | ✔️ | |
| Adobe Portable Document Format. | ✔️ | ||
| XPS | XML Paper Specification Format. | ✔️ | |
| SVG | Scalable Vector Graphics Format. | ✔️ | |
| TIFF | Tagged Image File Format | ✔️ | |
| PNG | Portable Network Graphics Format | ✔️ | |
| BMP | Bitmap Image Format | ✔️ | |
| EMF | Enhanced metafile Format | ✔️ | |
| JPEG | JPEG is a type of image format that is saved using the method of lossy compression. | ✔️ | |
| GIF | Graphical Interchange Format | ✔️ | |
| MARKDOWN | Represents a markdown document. | ✔️ | |
| SXC | An XML based format used by OpenOffice and StarOffice | ✔️ | ✔️ |
| FODS | This is an Open Document format stored as flat XML. | ✔️ | ✔️ |
| DOCX | A well-known format for Microsoft Word documents that is a combination of XML and binary files. | ✔️ | |
| PPTX | The PPTX format is based on the Microsoft PowerPoint open XML presentation file format. | ✔️ | |
| SqlScript | Structured Query Language. | ✔️ | |
| XHtml | The XHTML is a text based file format with markup in XML, using a reformulation of HTML 4.0. | ✔️ | ✔️ |
| Epub | Files with .epub extension are an e-book file format that provide a standard digital publication format for publishers. | ✔️ | ✔️ |
| Xml | XML stands for Extensible Markup Language that is similar to HTML but different in using tags for defining objects. | ✔️ | ✔️ |
| Ots | Open Document Template Sheet (OTS) file. | ✔️ | ✔️ |
| AZW3 | AZW is a digital ebook file format developed by Amazon for its Kindle devices. AZW3, also known as Kindle Format 8 (KF8). | ✔️ | ✔️ |
2000, XP, Server 2003-2019, Vista, 7-11, Azure
Ubuntu, openSUSE, CentOS, Debian, Alpine, others
OS X, macOS High Sierra, etc.
Note
Microsoft Excel is not required for Aspose.Cells components. Microsoft Excel Viewer is needed only to view generated Excel files.
cmd.exe as Administrator.msiexec /i Aspose.Cells.msi.Install-Package Aspose.Cells.Aspose.Cells.dll (from MSI or downloaded DLL) and click OK.net_ClientProfile folder for .NET Framework 3.5/4 Client Profile.Aspose.Cells.GridDesktop.dll and Aspose.Cells.GridWeb.dll similarly.This code demonstrates how to convert a worksheet into an image format, which can be useful for various application needs such as embedding it into a document or a web page.
//Create a new Workbook object
//Open a template excel file
Workbook book = new Workbook("Sheet to Image.xls");
//Get the first worksheet.
Worksheet sheet = book.Worksheets[0];
//Define ImageOrPrintOptions
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
//Specify the image type
imgOptions.ImageType = ImageType.Jpeg;
//Render the sheet with respect to specified image/print options
SheetRender sr = new SheetRender(sheet, imgOptions);
//Render the image for the sheet
Bitmap bitmap = sr.ToImage(0);
//Save the image file
bitmap.Save("SheetImage.jpg");
This snippet shows how to use Aspose.Cells' Smart Markers feature with custom objects, which is great for dynamically generating reports in Excel.
//Instantiate the workbookdesigner object.
WorkbookDesigner report = new WorkbookDesigner();
//Get the first worksheet(default sheet) in the workbook.
Aspose.Cells.Worksheet w = report.Workbook.Worksheets[0];
//Input some markers to the cells.
w.Cells["A1"].PutValue("Test");
w.Cells["A2"].PutValue("&=MyProduct.Name");
w.Cells["B2"].PutValue("&=MyProduct.Age");
//Instantiate the list collection based on the custom class.
IList<MyProduct> list = new List<MyProduct>();
//Provide values for the markers using the custom class object.
list.Add(new MyProduct("Simon", 30));
list.Add(new MyProduct("Johnson", 33));
//Set the data source.
report.SetDataSource("MyProduct", list);
//Process the markers.
report.Process(false);
//Save the excel file.
report.Workbook.Save("Smart Marker Customobjects.xls");
This example shows how to merge or unmerge a range of cells in a worksheet, which can be useful for formatting purposes or creating visually organized reports.
//Create a workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
//Create a range
Range range = worksheet.Cells.CreateRange("A1", "D4");
//Merge cells
range.Merge();
//Unmerge cells (optional)
range.UnMerge();
//Save the workbook
workbook.Save("MergedCells.xlsx");
This snippet illustrates how to add a chart title and customize the appearance of gridlines, which allows developers to create well-designed and professional-looking charts.
//Create a new workbook.
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
//Adding a chart to the worksheet
int chartIndex = worksheet.Charts.Add(ChartType.Column, 5, 0, 15, 5);
Chart chart = worksheet.Charts[chartIndex];
//Setting the chart title.
chart.Title.Text = "Sales Chart";
//Hiding major gridlines.
chart.ValueAxis.MajorGridLines.IsVisible = false;
//Saving the Excel file
workbook.Save("ChartWithTitles.xlsx");
This example shows how to write a modern Excel 365 dynamic array formula (FILTER) into a cell, refresh all dynamic array spill ranges, and recalculate the workbook. The same approach works for any modern dynamic array or Excel 365 function such as SORT, UNIQUE, SEQUENCE, RANDARRAY, DROP, HSTACK, LAMBDA, LET, MAP, and others. See the Dynamic Array Formulas documentation for details.
//Load a workbook containing source data
Workbook wb = new Workbook("dynamicArrayFormula.xlsx");
Worksheet ws = wb.Worksheets[0];
//Target cell for the dynamic array formula
Cell f16 = ws.Cells["F16"];
//Set the dynamic array formula (FILTER spills into neighboring cells)
f16.SetDynamicArrayFormula(
"=FILTER(A2:C15,(A2:A15=F4)*(C2:C15=25),\"\")",
new FormulaParseOptions(),
false);
//Refresh dynamic array spill ranges before calculation
wb.RefreshDynamicArrayFormulas(true);
//Calculate and save
wb.CalculateFormula();
wb.Save("out.xlsx");
👁 Docs
👁 API Ref
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
👁 Excel HTML Converter
👁 Excel JSON Converter
👁 Excel Text Converter
👁 Excel to Image Tool
👁 Excel to PDF Converter
👁 Excel Locker Utility
Aspose.Cells | Excel API | Spreadsheet Automation | Pivot Table | Conditional Formatting | Chart Customization | Data Manipulation | Grid Controls | Smart Markers | OLE Objects | Workbook Rendering | PDF Conversion | Excel to PDF | Excel Charts | SpreadsheetML | Header and Footer | Excel Themes | Zoom Factor | Worksheet Features | Page Setup | C# API | Excel Rendering | Spreadsheet Conversion | Excel File Formats | Cross-Platform | Excel Data Filter | Worksheet Protection | GridWeb | GridDesktop | Excel VBA | Worksheet Freeze Panes | Dynamic Array Formulas | LAMBDA Functions | Excel 365 | FILTER Function | SORT Function | UNIQUE Function | Formula Calculation Engine | DROP Function | HSTACK Function | VSTACK Function
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net6.0-windows7.0 net6.0-windows7.0 is compatible. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. net10.0-windows7.0 net10.0-windows7.0 is compatible. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 is compatible. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Aspose.Cells:
| Package | Downloads |
|---|---|
|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
|
|
Aspose.Cells.GridJs
Aspose.Cells.GridJs is a lightweight, scalable, and customizable toolkit that provides cross-platform web applications, enables convenient development for editing or viewing Excel/Spreadsheet files, offers simple deployment, and provides easy-to-use APIs based on JSON format. |
|
|
fion.modelerp.core
ModelErp |
|
|
Pj.Library.ThirdParty
Utilities to fasten the development -Library Extensions to the default .net system objects Helpers for serialization, transform, compression, network and file transfer, database operations, logging -Secure Provides encryption and decryption -Service Cloud service support with google drive access and onedrive storage access -ThirdParty Excel read and write, csv file operations |
|
|
BLT.Common
Package Description |
Showing the top 7 popular GitHub repositories that depend on Aspose.Cells:
| Repository | Stars |
|---|---|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
|
xlljc/GunfireDungeon
《Gunfire Dungeon》, a dungeon shooting Rogue game developed by Godot
|
|
|
aspose-cells/Aspose.Cells-for-.NET
Aspose.Cells for .NET examples, plugins and showcases
|
|
|
loamen/Kalman.Studio
Kalman.Studio代码生成器是一款基于T4模板引擎的代码生成器和开发辅助工具。可以根据数据库元数据架构信息来生成代码,还可以解析PowerDesigner物理模型文件,根据PDM模型对象来生成代码等。
|
|
|
aspose-pdf/Aspose.PDF-for-.NET
Aspose.PDF for .NET examples, plugins and showcase projects
|
|
|
djkaty/Il2CppInspectorPlugins
The official repository of plugins for Il2CppInspector
|
|
|
vanderkleij/Smocks
Smocks is a library for mocking the normally unmockable. It can mock static and non-virtual methods and properties, amongst others.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 26.6.0 | 11,174 | 6/11/2026 |
| 26.5.1 | 65,850 | 5/14/2026 |
| 26.4.0 | 148,226 | 4/9/2026 |
| 26.3.0 | 169,194 | 3/11/2026 |
| 26.2.0 | 163,505 | 2/10/2026 |
| 26.1.0 | 125,150 | 1/13/2026 |
| 25.12.0 | 215,821 | 12/10/2025 |
| 25.11.0 | 276,313 | 11/11/2025 |
| 25.10.0 | 206,473 | 10/11/2025 |
| 25.9.0 | 299,350 | 9/10/2025 |
| 25.8.0 | 223,265 | 8/12/2025 |
| 25.7.0 | 212,375 | 7/9/2025 |
| 25.6.0 | 216,308 | 6/11/2025 |
| 25.5.0 | 259,080 | 5/12/2025 |
| 25.4.0 | 369,238 | 4/11/2025 |
| 25.3.0 | 395,166 | 3/12/2025 |
| 25.2.0 | 289,774 | 2/13/2025 |
| 25.1.2 | 427,194 | 1/20/2025 |
| 25.1.1 | 54,560 | 1/15/2025 |