Aspose.Cells
24.9.0
See the version list below for details.
dotnet add package Aspose.Cells --version 24.9.0
NuGet\Install-Package Aspose.Cells -Version 24.9.0
<PackageReference Include="Aspose.Cells" Version="24.9.0" />
paket add Aspose.Cells --version 24.9.0
#r "nuget: Aspose.Cells, 24.9.0"
// Install Aspose.Cells as a Cake Addin #addin nuget:?package=Aspose.Cells&version=24.9.0 // Install Aspose.Cells as a Cake Tool #tool nuget:?package=Aspose.Cells&version=24.9.0
.NET API for Excel® File Formats
Aspose.Cells for .NET is an Excel® Spreadsheet Programming API to speed up spreadsheet management and processing tasks. Excel® .NET API support to build cross-platform applications having the ability to generate, modify, convert, render, and print spreadsheets. It allows developers to manage worksheets, rows, columns & cells, create spreadsheet contents and styles from scratch, import data onto the worksheets from different data sources, add common and complex mathematical, financial, and text formulas, create & manipulate pivot tables, charts, hyperlinks, comments, drawing objects and much more.
Aspose.Cells for .NET also provides various Grid solutions with GUI-based .NET controls; Aspose.Cells.GridDesktop, Aspose.Cells.GridWeb, and Aspose.Cells.GridJs.
What is Aspose.Cells for .NET?
Aspose.Cells for .NET enables your .NET, C#, ASP.NET, and VB.NET applications to create, format, render, print and convert Microsoft Excel® and OpenDocument spreadsheets (XLS, XLSX, ODS, etc.) to various supported formats, without the need to install Microsoft Excel or any 3rd party software. Its powerful formula calculation engine supports various standard and advanced MS Excel® formulas/functions.
Aspose.Cells for .NET is written in managed C# and can be used in any kind of .NET-based Windows Desktop Application or ASP.NET Web Application. Our library can also be used with classic ASP, and PHP.
It’s rich object model consists of 800+ public classes that offer .NET developers to integrate exciting spreadsheet manipulation features into their applications, ranging from creating pivot charts, combining spreadsheets, parsing data, to encrypting and exporting spreadsheet files. Render spreadsheet pages to raster (TIFF, multipage TIFF, PNG, JPEG, BMP) or vector (EMF) images. Aspose.Cells for .NET also supports working with XLSB, XLT, XLTX, XLTM, XLSM, XML, HTML, CSV, TSV, HTML/MHTML, etc. It is capable of converting spreadsheets to PDF and XPS formats while maintaining the highest visual fidelity. You can add standard and customized charts and dynamically set data in order to refresh the charts. The charts can also be converted to high-quality PDF and raster image formats.
What's new in Aspose.Cells for .NET v.24.9.0
The Aspose.Cells for .NET 24.9 release brings significant new features and improvements for enhanced document processing. Here are the key updates:
New Features
MathML Support (CELLSNET-56319):
Added support for exporting equation content to MathML format, improving compatibility with mathematical standards.Equation Group Enhancements (CELLSNET-56300):
Now supports reading, storing, and rendering of limit equations and equation groups, expanding equation handling capabilities.PivotTable Support (CELLSNET-43395):
Added translation support for “Sum of” column in PivotTable reports for multilingual environments.Image Quality Customization (CELLSNET-1457):
Ability to adjust the image quality for JPG files, offering flexibility in rendering document images.
Bug Fixes
Improved Equation Rendering (CELLSNET-56549):
Fixed an issue where limit equations did not render correctly when exporting to PDF.Excel to PDF Conversion Issues (CELLSNET-56596):
Addressed chart distortion and scaling errors during Excel to PDF conversion.
For a complete list of all new features, enhancements, and bug fixes introduced in this release, visit the Aspose.Cells for .NET 24.9 Release Notes.
Spreadsheet File Processing Features
- Spreadsheet generation & manipulation via API.
- High-quality file format conversion & rendering.
- Print Microsoft Excel® files to physical or virtual printers.
- Combine, modify, protect, or parse Excel® sheets.
- Apply worksheet formatting.
- Configure and apply page setup for the worksheets.
- Create & customize Excel® charts, Pivot Tables, conditional formatting rules, slicers, tables & spark-lines.
- Convert Excel® charts to images & PDF.
- Convert Excel® files to various other formats.
- Formula calculation engine that supports all basic and advanced Excel functions.
Supported Read & Write Formats
Microsoft Excel®: XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM, CSV, TSV, TabDelimited, SpreadsheetML
OpenOffice: ODS, SXC, FODS
Text: TXT
Web: HTML, MHTML
iWork®: Numbers
Other: SXC
Save Excel® Files As
Microsoft Word®: DOCX
Microsoft PowerPoint®: PPTX
Fixed Layout: PDF, XPS
Data Interchange: DIF
Vector Graphics: SVG
Image: TIFF,PNG, BMP, JPEG, GIF
Metafile: EMF
Markdown: MD
Platform Independence
Aspose.Cells for .NET can be used to build ASP.NET, Web Services, WinForms, or other .NET applications for framework 2.0 or later on 32-bit and 64-bit operating systems. It also provides dedicated assemblies for Xamarin.Android (for native Android apps), Xamarin.iOS (for native iOS apps), COM (for pre-.NET technologies), Mono, and Windows Azure.
Get Started
Are you ready to give Aspose.Cells for .NET a try? Simply execute Install-Package Aspose.Cells
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Cells for .NET and want to upgrade the version, please execute Update-Package Aspose.Cells
to get the latest version.
Import JSON Data into Excel® Using C# with Aspose.Cells
The provided C# code snippet demonstrates how to import JSON
data into an Excel® worksheet using Aspose.Cells API enables you to integrate JSON
data into Excel for reporting, data analysis, or sharing with stakeholders. The snippet not only shows how to read JSON
from a file and import it into a worksheet but also highlights how to apply custom styling to the imported data, making the data presentation more professional. By leveraging this code, you can automate data import processes, thus saving time and reducing errors associated with manual data entry.
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
//Cutom style for the title
Style style = workbook.CreateStyle();
style.Font.IsBold = true;
string jsonInput = File.ReadAllText(dataDir + "Test.json");
JsonLayoutOptions options = new JsonLayoutOptions();
options.TitleStyle = style;
// Import JSON Data
JsonUtility.ImportData(jsonInput, worksheet.Cells, 0, 0, options);
Export Excel® Data to JSON Format with Aspose.Cells in C#
This concise C# snippet exports data from Excel® XLSX to JSON using Aspose.Cells API. It converts a range of cells into JSON
, facilitating easy data sharing and integration with web apps, databases, or APIs. This enhances data flexibility and ensures smooth, efficient data transformations.
var workbook = new Aspose.Cells.Workbook(dir + "data.xlsx");
Cells cells = workbook.Worksheets[0].Cells;
JsonSaveOptions jsonSaveOptions = new JsonSaveOptions();
Range range = workbook.Worksheets[0].Cells.CreateRange(0, 0, cells.MaxDataRow + 1, cells.MaxDataColumn + 1);
string data = JsonUtility.ExportRangeToJson(range, jsonSaveOptions);
Create XLSX Excel® File from Scratch via C# Code
You can execute the below code snippet to see how Aspose.Cells API performs in your environment or check the GitHub Repository for other common usage scenarios.
// initiate an instance of Workbook
var book = new Aspose.Cells.Workbook();
// access first (default) worksheet
var sheet = book.Worksheets[0];
// access CellsCollection of first worksheet
var cells = sheet.Cells;
// write HelloWorld to cells A1
cells["A1"].Value = "Hello World";
// save spreadsheet to disc
book.Save("output.xlsx", SaveFormat.Xlsx);
Convert Excel® Files to PDF, XPS & HTML
Aspose.Cells for .NET is capable of converting spreadsheets to numerous other popular formats including PDF, XPS & HTML formats while maintaining the highest visual fidelity. The conversion process is simple, configurable, and reliable.
// load file to be converted
var workbook = new Aspose.Cells.Workbook(dir + "template.xlsx");
// save in different formats
workbook.Save(dir + "output.pdf", Aspose.Cells.SaveFormat.Pdf);
workbook.Save(dir + "output.xps", Aspose.Cells.SaveFormat.XPS);
workbook.Save(dir + "output.html", Aspose.Cells.SaveFormat.Html);
Encrypt Excel® File with C# Code
var workbook = new Aspose.Cells.Workbook(dir + "template.xls");
// specify XOR encryption type
workbook.SetEncryptionOptions(EncryptionType.XOR, 40);
// specify strong encryption type (RC4,Microsoft Strong Cryptographic Provider)
workbook.SetEncryptionOptions(EncryptionType.StrongCryptographicProvider, 128);
// protect the file
workbook.Settings.Password = "1234";
// save the file
workbook.Save(dir + "output.xls");
Use C# to Create an Excel® Line Chart
var workbook = new Aspose.Cells.Workbook();
// add a new worksheet to the Excel® object
int sheetIndex = workbook.Worksheets.Add();
// obtain the reference of the newly added worksheet by providing its sheet index
Worksheet worksheet = workbook.Worksheets[sheetIndex];
// add sample values to cells
worksheet.Cells["A1"].PutValue(50);
worksheet.Cells["A2"].PutValue(100);
worksheet.Cells["A3"].PutValue(150);
worksheet.Cells["B1"].PutValue(4);
worksheet.Cells["B2"].PutValue(20);
worksheet.Cells["B3"].PutValue(50);
// add a chart to the worksheet
int chartIndex = worksheet.Charts.Add(Aspose.Cells.Charts.ChartType.Line, 5, 0, 15, 5);
// access the instance of the newly added chart
var chart = worksheet.Charts[chartIndex];
// add chart data source from "A1" to "B3"
chart.NSeries.Add("A1:B3", true);
// save the Excel® file
workbook.Save(dir + "output.xls");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net40 is compatible. net40-client is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.0 Client
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 5.0.3)
- System.Security.Cryptography.Pkcs (>= 5.0.1)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net6.0
- SkiaSharp (>= 2.88.6)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net6.0-windows7.0
- System.Drawing.Common (>= 6.0.0)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net7.0
- SkiaSharp (>= 2.88.6)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net7.0-windows7.0
- System.Drawing.Common (>= 6.0.0)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net8.0
- SkiaSharp (>= 2.88.6)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net8.0-windows7.0
- System.Drawing.Common (>= 6.0.0)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
- System.Text.Encoding.CodePages (>= 4.7.0)
NuGet packages (87)
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. |
|
fion.modelerp.core
ModelErp |
|
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. |
|
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 |
GitHub repositories (7)
Showing the top 5 popular GitHub repositories that depend on Aspose.Cells:
Repository | Stars |
---|---|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
aspose-cells/Aspose.Cells-for-.NET
Aspose.Cells for .NET examples, plugins and showcases
|
|
loamen/Kalman.Studio
Kalman.Studio代码生成器是一款基于T4模板引擎的代码生成器和开发辅助工具。可以根据数据库元数据架构信息来生成代码,还可以解析PowerDesigner物理模型文件,根据PDM模型对象来生成代码等。
|
|
xlljc/DungeonShooting
《枪火地牢》,一款由Godot开发的地牢射击Rogue游戏
|
|
known/Known
Known是基于Blazor的企业级快速开发框架,低代码,跨平台,开箱即用,一处代码,多处运行。
|
Version | Downloads | Last updated |
---|---|---|
24.10.0 | 32,607 | 10/10/2024 |
24.9.0 | 68,458 | 9/10/2024 |
24.8.0 | 124,793 | 8/8/2024 |
24.7.0 | 88,058 | 7/11/2024 |
24.6.0 | 103,438 | 6/14/2024 |
24.5.0 | 132,287 | 5/9/2024 |
24.4.0 | 170,885 | 4/9/2024 |
24.3.0 | 226,318 | 3/8/2024 |
24.2.0 | 171,242 | 2/5/2024 |
24.1.0 | 210,484 | 1/10/2024 |
23.12.0 | 162,528 | 12/12/2023 |
23.11.0 | 263,839 | 11/9/2023 |
23.10.0 | 306,785 | 10/12/2023 |
23.9.0 | 195,169 | 9/13/2023 |
23.8.0 | 320,666 | 8/9/2023 |
23.7.0 | 209,622 | 7/13/2023 |
23.6.0 | 227,588 | 6/8/2023 |
23.5.0 | 248,281 | 5/9/2023 |
23.4.0 | 339,119 | 4/11/2023 |
23.3.0 | 646,026 | 3/8/2023 |
23.2.0 | 262,853 | 2/8/2023 |
23.1.1 | 267,372 | 1/17/2023 |
23.1.0 | 88,360 | 1/10/2023 |
22.12.0 | 360,040 | 12/9/2022 |
22.11.0 | 392,655 | 11/10/2022 |
22.10.1 | 381,537 | 10/20/2022 |
22.10.0 | 84,538 | 10/11/2022 |
22.9.0 | 494,394 | 9/8/2022 |
22.8.0 | 231,260 | 8/4/2022 |
22.7.0 | 256,877 | 7/7/2022 |
22.6.1 | 499,042 | 6/13/2022 |
22.5.0 | 275,377 | 5/10/2022 |
22.4.0 | 299,983 | 4/12/2022 |
22.3.0 | 415,714 | 3/10/2022 |
22.2.0 | 287,534 | 2/11/2022 |
22.1.0 | 380,899 | 1/7/2022 |
21.12.0 | 228,399 | 12/8/2021 |
21.11.0 | 378,283 | 11/8/2021 |
21.10.0 | 221,792 | 10/14/2021 |
21.9.0 | 308,253 | 9/15/2021 |
21.8.0 | 233,976 | 8/12/2021 |
21.7.0 | 312,487 | 7/13/2021 |
21.6.0 | 379,708 | 6/16/2021 |
21.5.0 | 347,200 | 5/14/2021 |
21.4.0 | 233,763 | 4/14/2021 |
21.3.0 | 214,362 | 3/11/2021 |
21.2.0 | 420,556 | 2/5/2021 |
21.1.0 | 539,639 | 1/15/2021 |
20.12.0 | 265,535 | 12/17/2020 |
20.11.0 | 352,204 | 11/12/2020 |
20.10.0 | 241,696 | 10/16/2020 |
20.9.0 | 211,503 | 9/10/2020 |
20.8.0 | 281,041 | 8/13/2020 |
20.7.0 | 365,535 | 7/15/2020 |
20.6.0 | 396,343 | 6/12/2020 |
20.5.0 | 190,282 | 5/21/2020 |
20.4.0 | 342,453 | 4/16/2020 |
20.3.0 | 349,420 | 3/19/2020 |
20.2.0 | 169,091 | 2/20/2020 |
20.1.0 | 220,237 | 1/16/2020 |
19.12.0 | 234,027 | 12/17/2019 |
19.11.0 | 260,104 | 11/15/2019 |
19.10.0 | 196,212 | 10/18/2019 |
19.9.0 | 236,482 | 9/18/2019 |
19.8.0 | 222,585 | 8/20/2019 |
19.7.0 | 297,412 | 7/18/2019 |
19.6.0 | 126,526 | 6/20/2019 |
19.5.0 | 130,422 | 5/16/2019 |
19.4.0 | 359,554 | 4/17/2019 |
19.3.0 | 148,692 | 3/15/2019 |
19.2.0 | 172,827 | 2/18/2019 |
19.1.0 | 172,887 | 1/17/2019 |
18.12.0 | 419,421 | 12/19/2018 |
18.11.0 | 136,813 | 11/19/2018 |
18.10.0 | 159,400 | 10/18/2018 |
18.9.0 | 58,458 | 9/17/2018 |
18.8.0 | 130,006 | 8/15/2018 |
18.7.0 | 138,870 | 7/12/2018 |
18.6.0 | 204,645 | 6/19/2018 |
18.5.1 | 53,284 | 5/23/2018 |
18.5.0 | 84,153 | 5/17/2018 |
18.4.0 | 127,693 | 4/19/2018 |
18.3.0 | 150,593 | 3/16/2018 |
18.2.0 | 49,538 | 2/7/2018 |
18.1.0 | 155,034 | 1/18/2018 |
17.12.0 | 95,209 | 12/15/2017 |
17.11.1 | 35,744 | 11/20/2017 |
17.10.0 | 73,809 | 10/18/2017 |
17.9.0 | 46,596 | 9/19/2017 |
17.8.0 | 108,172 | 8/15/2017 |
17.7.0 | 105,323 | 7/18/2017 |
17.6.0 | 39,393 | 6/15/2017 |
17.5.0 | 37,786 | 5/16/2017 |
17.4.0 | 69,499 | 4/20/2017 |
17.3.0 | 52,806 | 3/16/2017 |
17.2.0 | 58,668 | 2/16/2017 |
17.1.0 | 51,330 | 1/12/2017 |
16.12.0 | 71,453 | 12/13/2016 |
16.11.0 | 66,713 | 11/11/2016 |
16.10.0 | 84,917 | 10/12/2016 |
9.0.0 | 92,704 | 9/13/2016 |
8.9.2 | 105,897 | 8/19/2016 |
8.9.1 | 6,139 | 8/12/2016 |
8.9.0 | 69,933 | 7/18/2016 |
8.8.3 | 44,953 | 6/28/2016 |
8.8.2 | 38,399 | 6/3/2016 |
8.8.1 | 8,764 | 5/23/2016 |
8.8.0 | 133,753 | 4/21/2016 |
8.7.2 | 55,951 | 3/25/2016 |
8.7.1 | 96,859 | 2/24/2016 |
8.7.0 | 27,965 | 1/26/2016 |
8.6.3 | 45,773 | 12/23/2015 |
8.6.2 | 51,508 | 11/20/2015 |
8.6.1 | 42,708 | 10/23/2015 |
8.6.0 | 41,668 | 9/21/2015 |
8.5.2 | 47,728 | 8/17/2015 |
8.5.1 | 55,428 | 7/16/2015 |
8.5.0 | 31,879 | 6/19/2015 |
8.4.2 | 57,839 | 5/19/2015 |
8.4.1 | 20,934 | 4/15/2015 |
8.4.0 | 48,411 | 3/12/2015 |
8.3.2.1 | 94,578 | 2/4/2015 |
8.3.2 | 17,999 | 1/23/2015 |
8.3.1 | 25,399 | 12/10/2014 |
8.3.0 | 14,341 | 11/14/2014 |
8.2.2 | 92,483 | 10/16/2014 |
8.2.1 | 70,636 | 9/17/2014 |
8.2.0 | 20,277 | 8/15/2014 |
8.1.2 | 12,377 | 7/23/2014 |
8.1.1 | 31,314 | 6/27/2014 |
8.1.0 | 24,445 | 6/6/2014 |
8.0.2 | 18,361 | 5/14/2014 |
8.0.1 | 13,971 | 4/21/2014 |
8.0.0 | 18,493 | 3/26/2014 |
7.7.2 | 293,245 | 2/17/2014 |
7.7.1 | 27,846 | 1/15/2014 |
7.7.0 | 24,512 | 12/16/2013 |
7.6.1 | 56,218 | 11/18/2013 |
7.6.0 | 46,089 | 10/17/2013 |
7.5.3 | 15,459 | 9/10/2013 |
7.5.2 | 16,368 | 8/14/2013 |
7.5.1 | 11,427 | 7/18/2013 |
7.5.0 | 33,632 | 6/10/2013 |
7.4.3 | 37,290 | 4/29/2013 |
7.4.2 | 13,982 | 4/1/2013 |
7.4.1 | 10,962 | 3/4/2013 |
7.4.0 | 21,185 | 1/28/2013 |
7.3.5 | 10,502 | 12/31/2012 |
7.3.4 | 19,177 | 11/30/2012 |
7.3.3 | 18,736 | 10/30/2012 |
7.3.2 | 65,025 | 9/28/2012 |
7.3.1 | 13,661 | 8/27/2012 |
7.3.0 | 13,347 | 7/17/2012 |
7.2.2 | 15,915 | 6/18/2012 |
7.2.1 | 11,299 | 5/21/2012 |
7.2.0 | 29,958 | 4/16/2012 |
7.1.2 | 7,821 | 3/19/2012 |
7.1.1.1 | 8,010 | 2/16/2012 |
7.1.1 | 6,621 | 2/14/2012 |
7.1.0 | 28,295 | 1/24/2012 |