![]() |
VOOZH | about |
dotnet add package Aspose.Cells.Cpp --version 26.6.1
NuGet\Install-Package Aspose.Cells.Cpp -Version 26.6.1
<PackageReference Include="Aspose.Cells.Cpp" Version="26.6.1" />
<PackageVersion Include="Aspose.Cells.Cpp" Version="26.6.1" />Directory.Packages.props
<PackageReference Include="Aspose.Cells.Cpp" />Project file
paket add Aspose.Cells.Cpp --version 26.6.1
#r "nuget: Aspose.Cells.Cpp, 26.6.1"
#:package Aspose.Cells.Cpp@26.6.1
#addin nuget:?package=Aspose.Cells.Cpp&version=26.6.1Install as a Cake Addin
#tool nuget:?package=Aspose.Cells.Cpp&version=26.6.1Install as a Cake Tool
👁 Version 26.6.1
👁 NuGet
👁 .NET
👁 Product Page
👁 Docs
👁 Reference
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
Aspose.Cells for C++ is a high-performance native C++ library designed to handle Microsoft Excel® files programmatically. It supports a wide range of Excel® file formats, including XLS, XLSX, XLSM, and XLSB, as well as other formats such as CSV, TSV, and OpenOffice XML. With powerful features like direct cell manipulation, dynamic data handling, interactive hyperlinking, conditional formatting, customizable themes, chart creation, and file format conversions (Excel® to PDF, images, etc.), Aspose.Cells for C++ allows developers to build robust Excel® automation solutions without needing Microsoft Office or any other external software. Whether working on Windows®, Linux, or macOS, this library simplifies Excel® file processing with a rich API for formatting, formulas, data analysis, and more.
| 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. | ✔️ | ✔️ |
| 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 the 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 and consumers. | ✔️ | ✔️ |
| 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). | ✔️ | ✔️ |
| Section | Description |
|---|---|
| Supported Operating Systems | Aspose.Cells for C++ supports the following 64-bit or 32-bit operating systems and platforms: |
| Operating System | Versions |
| Microsoft Windows® | - Windows® x86, - Windows® x86_64 |
| Linux | - Linux x86_64, - Linux for ARM (aarch64) |
| macOS | - macOS 11 or later (arm64, x86_64) |
| Section | Description |
|---|---|
| Development Platforms | Aspose.Cells for C++ can be used to develop applications for Windows®, Linux, or macOS. |
| Environment | Description |
|---|---|
| Supported Development Environments | Aspose.Cells for C++ can be used to develop applications in any environment that supports Microsoft Visual Studio v142 Platform Toolset. Supported environments: |
| Development Environments | - Microsoft Visual Studio 2019, - Microsoft Visual Studio 2022 |
| Environment | Description |
|---|---|
| Compilers | Aspose.Cells for C++ can be used to develop applications that support C++11 or higher, but the following compilers are explicitly supported: |
| Supported Compilers | - GCC 9.4.0 or later |
| Additional Dependencies | Aspose.Cells for C++ on Linux requires fontconfig binaries (dynamic library and tool). Installation commands: |
| Installing on Ubuntu/Debian | sudo apt install libfontconfig fontconfig |
| Installing on Fedora/CentOS | sudo yum install fontconfig |
| Environment | Description |
|---|---|
| Supported Development Environments | Aspose.Cells for C++ can be used in the following environments: |
| Development Environments | - Xcode 12.5.1 or later, - Clang and libc++ (included by default with Xcode) |
Install-Package Aspose.Cells.Cpp. If you already have Aspose.Cells for C++ and want to upgrade the version, please execute Update-Package Aspose.Cells.Cpp to get the latest version.Learn how to insert multiple rows into an Excel® worksheet programmatically using Aspose.Cells for C++. This step-by-step guide demonstrates the usage of the InsertRows method to efficiently add rows in any position within a worksheet, making spreadsheet manipulation easier in C++ applications.
// Initialize Aspose.Cells library
Aspose::Cells::Startup();
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C
// Define the path to the input directory
U16String dirPath(u"");
// Define the path to the output directory
U16String outPath(u"");
// Define the path to the input Excel® file
U16String sampleInsertingDeletingRowsAndColumns = dirPath + u"sampleInsertingDeletingRowsAndColumns.xlsx";
// Define the path to the output Excel® file
U16String outputInsertingDeletingRowsAndColumns = outPath + u"outputInsertingDeletingRowsAndColumns.xlsx";
// Load the Excel® file into a workbook object
Workbook workbook(sampleInsertingDeletingRowsAndColumns);
// Access the first worksheet in the workbook
Worksheet worksheet = workbook.GetWorksheets().Get(0);
// Insert 10 rows starting from the 3rd row (index 2) in the worksheet
worksheet.GetCells().InsertRows(2, 10);
// Save the updated Excel® file
workbook.Save(outputInsertingDeletingRowsAndColumns);
// Cleanup Aspose.Cells library resources
Aspose::Cells::Cleanup();
_Source_*
The following example demonstrates how to apply conditional formatting to cells A1 and B2. The conditional formatting rule hides the red background color in these cells when values greater than 100 are entered into cells A2 and B2.
// Initialize Aspose.Cells library
Aspose::Cells::Startup();
// Define the path for output Excel® file
U16String outPath(u"");
U16String outputApplyConditionalFormattingInWorksheet = outPath + u"outputApplyConditionalFormattingInWorksheet.xlsx";
// Create an empty workbook
Workbook wb;
// Access the first worksheet
Worksheet ws = wb.GetWorksheets().Get(0);
// Add a new empty conditional formatting rule
int idx = ws.GetConditionalFormattings().Add();
FormatConditionCollection fcs = ws.GetConditionalFormattings().Get(idx);
// Define the range for conditional formatting (A1 and B2)
CellArea ca = CellArea::CreateCellArea(u"A1", u"A1");
fcs.AddArea(ca);
ca = CellArea::CreateCellArea(u"B2", u"B2");
fcs.AddArea(ca);
// Add a condition to format cells when their values are between the specified range
idx = fcs.AddCondition(FormatConditionType::CellValue, OperatorType::Between, u"=A2", u"100");
FormatCondition fc = fcs.Get(idx);
// Set the background color to red
fc.GetStyle().SetBackgroundColor(Color{ 0xff,0xff ,0 ,0 });
// Add a user-friendly message to explain the conditional formatting effect
U16String msgStr = u"Red color in cells A1 and B2 is due to Conditional Formatting. "
u"Enter a value >100 in A2 and B2 to see the red background disappear.";
ws.GetCells().Get(u"A10").PutValue(msgStr);
// Save the output Excel® file
wb.Save(outputApplyConditionalFormattingInWorksheet);
// Cleanup Aspose.Cells library
Aspose::Cells::Cleanup();
_Source_*
👁 Product Page
👁 Docs
👁 Reference
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
Aspose | GroupDocs |Spreadsheet Manipulation | Excel File Formats | C++ Excel API | Conditional Formatting | Data Handling | Chart Rendering | PDF Export | Excel to PDF | File Conversion | Pivot Tables | OLE Objects | Cell Manipulation | Interactive Hyperlinking | Custom Themes | Linux Support | macOS Support | Windows Support | NuGet Package | Excel Automation | Excel API | Spreadsheet Processing | Excel Export | SpreadsheetML | OpenOffice XML | CSV Support | TSV Support | Image Export | API Integration | Workbook Manipulation | Worksheet Formatting | Table Creation | Pivot Table Management
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Showing the top 1 NuGet packages that depend on Aspose.Cells.Cpp:
| Package | Downloads |
|---|---|
|
Aspose.Total.Cpp
Aspose.Total for C++ is a complete package of C++ libraries specifically designed to create, manipulate and convert popular file formats from Microsoft Office and PDF without requiring Office or Adobe Automation. C++ API package also includes a specialized library to generate and recognize barcode labels from images with advanced features to customize the barcode generation and recognition process. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.6.1 | 407 | 6/12/2026 |
| 26.6.0 | 465 | 6/10/2026 |
| 26.5.0 | 920 | 5/13/2026 |
| 26.4.0 | 8,908 | 4/9/2026 |
| 26.3.0 | 15,768 | 3/11/2026 |
| 26.2.0 | 21,593 | 2/11/2026 |
| 26.1.0 | 24,107 | 1/14/2026 |
| 25.12.0 | 28,520 | 12/10/2025 |
| 25.11.0 | 40,208 | 11/12/2025 |
| 25.10.0 | 43,719 | 10/11/2025 |
| 25.9.0 | 44,176 | 9/11/2025 |
| 25.8.0 | 44,304 | 8/12/2025 |
| 25.7.0 | 44,323 | 7/10/2025 |
| 25.6.0 | 44,507 | 6/11/2025 |
| 25.5.0 | 44,425 | 5/12/2025 |
| 25.4.0 | 44,599 | 4/11/2025 |
| 25.3.0 | 44,539 | 3/13/2025 |
| 25.2.0 | 44,758 | 2/14/2025 |
| 25.1.0 | 44,684 | 1/13/2025 |
| 24.12.0 | 45,090 | 12/12/2024 |