Aspose.Cells.Cpp
24.9.0
See the version list below for details.
dotnet add package Aspose.Cells.Cpp --version 24.9.0
NuGet\Install-Package Aspose.Cells.Cpp -Version 24.9.0
<PackageReference Include="Aspose.Cells.Cpp" Version="24.9.0" />
paket add Aspose.Cells.Cpp --version 24.9.0
#r "nuget: Aspose.Cells.Cpp, 24.9.0"
// Install Aspose.Cells.Cpp as a Cake Addin #addin nuget:?package=Aspose.Cells.Cpp&version=24.9.0 // Install Aspose.Cells.Cpp as a Cake Tool #tool nuget:?package=Aspose.Cells.Cpp&version=24.9.0
Spreadsheet Conversion & Manipulation C++ Library
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.
What's new in the Aspose.Cells for C++ v24.9.0
Aspose.Cells for C++ 24.9 brings a host of new features and improvements for developers working with spreadsheet documents. This release enhances custom function capabilities, Object-type function support, and provides better math equation rendering.
New Features
- Custom Functions via AbstractCalculationEngine (CELLSCPP-1108):
Developers can now implement custom functions using theAbstractCalculationEngine
feature, allowing more flexibility in calculations. - Object-Type Function Support (CELLSCPP-1109 & CELLSCPP-1110):
Supports passing and returning Object-type objects as function parameters, enhancing data manipulation and calculations. - MathML Export (CELLSNET-56319):
Export equation content to MathML format, ensuring compatibility with modern web standards.
Enhancements
- Optimize PDF Conversion (CELLSNET-56593 & CELLSNET-56594):
Optimized image resource release and data handling for faster PDF conversion.
Bug Fixes
- Incorrect Annotation Display (CELLSNET-56624):
Fixed an issue where range names were not working in XLSB format.
For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.Cells for CPP 24.9 Release Notes.
Direct Cell Manipulation
- Precise Cell Addressing: Navigate your data using specific cell addresses (e.g., "A1", "B2").
- Named Ranges: Assign names to cell ranges for easier reference.
- Active Cell Control: Manage the selected cell for streamlined data entry.
- Range Operations: Perform calculations and apply formatting across cell blocks.
Dynamic Data Handling
- Seamless Data Input: Directly populate spreadsheets or import from external sources.
- Data Validation: Define rules to control input types and ranges.
- Formulaic Power: Use C++ to create custom functions and complex formulas.
- Data Manipulation: Perform sorting, filtering, and calculations on data.
- Data Output: Export data from C++ applications to Excel® files.
Interactive Hyperlinking
- Effortless Linking: Embed clickable hyperlinks within your spreadsheet.
- Hyperlink Management: Programmatically create, modify, or remove hyperlinks.
Flexible Layout Control
- Row and Column Resizing: Dynamically adjust dimensions.
- AutoFit for Precision: Automatically optimize cell sizes for content.
Conditional Formatting
- Dynamic Styling: Apply formatting based on criteria.
- Rich Visualizations: Use data bars, color scales, and icons for better visuals.
Customizable Themes
- Tailored Aesthetics: Apply custom themes for a consistent look.
- Theme Management: Copy themes between workbooks and modify them as needed.
Calculation Engine
- Formulaic Precision: Execute complex calculations with a wide range of functions.
- Real-time Updates: Automatic recalculation when cell values change.
Cells Formatting
- Font, Fill, Border, and Number Formatting: Customize fonts, backgrounds, borders, and number formats.
- Alignment and Protection: Adjust text alignment, wrapping, and protect cells from edits.
Charts and Chart Rendering
- Chart Types: Create bar, line, pie, and other chart types.
- Chart Customization: Modify elements like titles, axes, and data labels.
- Chart Rendering: Export charts as images with customizable settings.
Convert and Export Options
- Convert Excel® to PDF: Save workbooks as PDFs with security options.
- Export to Images: Convert worksheets to PNG, JPEG, BMP, and more.
Copying and Moving Data
- Worksheet Copying/Moving: Duplicate and reorder sheets within or between workbooks.
- Row/Column Copying: Duplicate rows or columns with ease.
- Theme Copying: Copy themes across workbooks for consistent design.
Table and Pivot Table Management
- Create and Format Tables: Create, style, and manipulate Excel® tables.
- Pivot Tables: Generate and customize pivot tables for data analysis.
OLE Objects
- Insert/Extract OLE Objects: Embed and extract OLE objects (charts, images) from worksheets.
Find or Search Data
- Find/Replace: Search for and replace text or values.
- Advanced Search: Use wildcards or regular expressions for precise searches.
Subtotals and Grouping
- Subtotal Creation: Automatically insert subtotals for grouped data.
- Grouping/Ungrouping: Collapse or expand row and column groups.
Supported File Formats
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 which forms part of Apple’s iWork office suite. | ✔️ | |
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). | ✔️ | ✔️ |
System Requirements
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) |
Development Environment
Section | Description |
---|---|
Development Platforms | Aspose.Cells for C++ can be used to develop applications for Windows®, Linux, or macOS. |
Windows®
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 |
Linux
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 |
macOS
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) |
Installing Aspose.Cells for C++ in Windows®
Using NuGet Package Manager
- Search for Aspose.Cells.Cpp in the NuGet Package Manager.
- Simply execute
Install-Package Aspose.Cells.Cpp
. If you already have Aspose.Cells for C++ and want to upgrade the version, please executeUpdate-Package Aspose.Cells.Cpp
to get the latest version.
Using Include and lib Folders
- Download the latest files and unzip them.
- Reference the "Include" and "lib / dll" directories in your project.
Installing Aspose.Cells for C++ in Linux
- Download the latest files and unzip them.
- Reference the "Include" and "libAspose.Cells.so" directories in your project.
Installing Aspose.Cells for C++ in macOS
- Download the latest files and unzip them.
- Reference the "Include" and "libAspose.Cells.dylib" directories in your project.
Aspose.Cells for C++ Code Samples
Insert Multiple Rows in Excel® Worksheet using Aspose.Cells for C++
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();
Apply Conditional Formatting in a Worksheet
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();
Tags
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.
NuGet packages (1)
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.11.0 | 105 | 11/13/2024 |
24.10.0 | 454 | 10/11/2024 |
24.9.0 | 1,210 | 9/11/2024 |
24.8.0 | 847 | 8/9/2024 |
24.7.0 | 858 | 7/12/2024 |
24.6.0 | 1,354 | 6/17/2024 |
24.5.0 | 1,829 | 5/10/2024 |
24.4.0 | 2,110 | 4/10/2024 |
24.3.0 | 2,390 | 3/11/2024 |
24.2.0 | 2,577 | 2/6/2024 |
24.1.0 | 3,005 | 1/10/2024 |
23.12.0 | 2,395 | 12/15/2023 |
23.11.0 | 3,332 | 11/13/2023 |
23.10.0 | 3,652 | 10/12/2023 |
23.9.0 | 3,590 | 9/14/2023 |
23.8.2 | 3,993 | 8/28/2023 |
23.8.1 | 490 | 8/23/2023 |
23.8.0 | 798 | 8/15/2023 |
23.7.0 | 6,257 | 7/10/2023 |
23.6.0 | 4,321 | 6/7/2023 |
23.5.0 | 3,407 | 5/9/2023 |
23.4.0 | 3,925 | 4/7/2023 |
23.3.1 | 524 | 3/31/2023 |
23.3.0 | 3,998 | 3/9/2023 |
23.2.0 | 4,691 | 2/6/2023 |
23.1.0 | 4,698 | 1/10/2023 |
22.12.0 | 4,969 | 12/1/2022 |
22.11.0 | 5,392 | 11/2/2022 |
22.10.0 | 5,143 | 10/8/2022 |
22.9.1 | 5,048 | 9/22/2022 |
22.9.0 | 793 | 9/2/2022 |
22.8.1 | 5,633 | 8/23/2022 |
22.8.0 | 803 | 8/5/2022 |
22.7.1 | 6,322 | 7/22/2022 |
22.7.0 | 923 | 7/4/2022 |
22.6.2 | 6,018 | 6/14/2022 |
22.6.1 | 771 | 6/13/2022 |
22.6.0 | 880 | 6/2/2022 |
22.5.0 | 9,425 | 4/29/2022 |
22.4.2 | 875 | 4/15/2022 |
22.4.1 | 794 | 4/8/2022 |
22.4.0 | 834 | 4/7/2022 |
22.3.0 | 5,772 | 3/4/2022 |
22.2.0 | 6,419 | 2/9/2022 |
22.1.0 | 5,404 | 1/14/2022 |
21.12.0 | 4,774 | 12/15/2021 |
21.11.0 | 9,447 | 11/16/2021 |
21.10.0 | 6,556 | 10/20/2021 |
21.9.0 | 5,972 | 9/14/2021 |
21.8.0 | 745 | 4/28/2022 |
21.7.0 | 8,587 | 7/15/2021 |
21.6.0 | 5,299 | 6/18/2021 |
21.5.0 | 595 | 5/18/2021 |
21.4.0 | 760 | 4/28/2022 |
21.3.0 | 814 | 4/28/2022 |
21.2.0 | 766 | 4/28/2022 |
21.1.0 | 19,010 | 1/25/2021 |
20.8.0 | 740 | 5/11/2022 |
20.7.0 | 22,553 | 7/21/2020 |
20.6.0 | 714 | 5/11/2022 |
20.5.0 | 739 | 6/16/2022 |
20.4.0 | 730 | 6/29/2022 |
20.3.0 | 756 | 6/29/2022 |
19.12.0 | 809 | 5/13/2022 |
19.11.0 | 21,270 | 11/27/2019 |
19.10.0 | 853 | 10/11/2019 |
19.9.0 | 729 | 5/13/2022 |
19.8.2 | 1,887 | 8/29/2019 |
19.8.1 | 1,083 | 8/29/2019 |
19.8.0 | 669 | 8/28/2019 |
19.7.0 | 797 | 6/9/2022 |
19.6.0 | 733 | 6/6/2022 |
19.5.0 | 771 | 6/6/2022 |
19.4.0 | 813 | 4/10/2019 |
19.3.1 | 779 | 3/22/2019 |
19.3.0 | 1,073 | 3/14/2019 |
19.2.0 | 774 | 6/6/2022 |
19.1.0 | 913 | 1/23/2019 |
18.8.0 | 1,105 | 8/21/2018 |
18.5.0 | 1,116 | 5/18/2018 |
18.4.0 | 1,457 | 4/18/2018 |