FileFormat.Cells 24.12.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FileFormat.Cells --version 24.12.0                
NuGet\Install-Package FileFormat.Cells -Version 24.12.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FileFormat.Cells" Version="24.12.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FileFormat.Cells --version 24.12.0                
#r "nuget: FileFormat.Cells, 24.12.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FileFormat.Cells as a Cake Addin
#addin nuget:?package=FileFormat.Cells&version=24.12.0

// Install FileFormat.Cells as a Cake Tool
#tool nuget:?package=FileFormat.Cells&version=24.12.0                

FileFormat.Cells for .NET

Version 24.12.1 Nuget

Product Page | Docs | API Reference | Examples | Blog

Open-Source .NET Library For Spreadsheet Automation

FileFormat.Cells is an Open-Source and feature-rich .NET API that simplifies spreadsheet automation. Built on top of OpenXML, this C# library allows developers to easily create, manipulate and manage Excel workbooks. Whether you’re handling reports, data processing, or dynamic worksheet generation, FileFormat.Cells is the go-to solution for developers looking to streamline spreadsheet tasks in .NET.

Key Features

  • Spreadsheet Generation: Create professional Excel files from scratch.
  • Advanced Worksheet Manipulation: Manage worksheets, rows, and columns with ease.
  • Multi-Sheet Management: Add, remove, rename, protect or reorder worksheets..
  • Freeze Panes: Easily lock rows and columns to keep key data visible.
  • Cell Formatting & Styling: Customize fonts, borders, colors, and more.
  • AutoFit Columns: Automatically adjust column widths to match content.
  • OpenXML Compatibility: Built on OpenXML for maximum performance and flexibility.

Why FileFormat.Cells?

  • Extensible & Lightweight: Designed with extensibility in mind, FileFormat.Cells is ideal for both simple and advanced spreadsheet operations.
  • Beginner-Friendly: Whether you’re new to .NET or an experienced developer, this library is straightforward and easy to use.
  • Performance-Oriented: Built on OpenXML for fast and efficient handling of large datasets.

Detailed Guides and Examples

For practical, step-by-step guides on using FileFormat.Cells, check out our blog posts:

Installation

  • Given that FileFormat.Cells is conveniently accessible through a NuGet Package, acquiring the library is as straightforward as obtaining the respective NuGet Package. The process of installing this C# Spreadsheet API is effortlessly accomplished through the execution of a single command, outlined below:.
Install-Package FileFormat.Cells

Basic Usage Example

The following code snippet creates an Excel file programmatically and adds text to cell A1:

using FileFormat.Cells;
using System;

class Program
{
    static void Main()
    {
        // Create a new workbook (Excel file)
        using (Workbook workbook = new Workbook())
        {
            // Access the first worksheet in the workbook
            Worksheet sheet = workbook.Worksheets.First();

            // Add text to cell A1
            sheet.Cells["A1"].PutValue("Hello, World!");

            // Save the workbook to the specified file path
            workbook.Save("Z:\\Downloads\\test.xlsx");
        }
    }
}

Coming updates

FileFormat.Cells is planning to add more functionalities to its features bucket. So, stay in touch for regular updates.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net7.0 was computed.  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.  net8.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FileFormat.Cells:

Package Downloads
FileFormat.Cells.Examples

Explore a collection of concise C# examples and Gists designed to demonstrate effective techniques for manipulating Excel spreadsheets using the FileFormat.Cells C# API. Streamline your spreadsheet processing tasks with these handy and practical code snippets.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
25.1.0 42 1/20/2025
24.12.2 83 12/30/2024
24.12.1 81 12/30/2024
24.12.0 81 12/26/2024
24.11.0 119 11/22/2024
24.10.1 126 10/23/2024
24.10.0 103 10/16/2024
24.9.0 136 9/12/2024
24.8.1 122 8/27/2024
24.8.0 130 8/15/2024
24.7.0 134 7/10/2024
24.5.0 120 5/15/2024
24.4.0 134 4/19/2024
24.2.0 234 2/22/2024
24.1.0 498 1/17/2024
23.12.0 432 12/18/2023
23.11.0 423 11/16/2023
23.10.0 427 10/17/2023
23.9.0 412 9/25/2023
23.8.0 425 8/22/2023

- Added `SetHyperlink` method in the `Cell` class:
- Programmatically add hyperlinks to Excel cells using A1 notation.
    - Supports optional tooltips for enhanced user experience.
  - Full compatibility with the OpenXML SDK and `FileFormat.Cells` API.
  - Example Usage:
   ```csharp
   using (Workbook wb = new Workbook("path/to/your/file.xlsx"))
   {
       Worksheet sheet = wb.Worksheets[0];
       Cell cell = sheet.Cells["B10"];
       cell.PutValue("Click Here");
       cell.SetHyperlink("https://example.com/", "Visit Example Website");
       wb.Save("path/to/your/file.xlsx");
   }
   ```