⚠ Deprecated: Other, Legacy
FileFormat.Cells nuget package has been discontinued. Please use Openize.OpenXML-SDK nuget package instead.
Suggested alternative: Openize.OpenXML-SDK
FileFormat.Cells is a smart open-source .NET SDK for automating Excel Spreadsheet creation, manipulation, and management. Built on top of OpenXML, this extensible C# library enables easy workbook creation, worksheet modification, and advanced features like Protect worksheet, Freeze Panes, Auto-Fit Columns. Ideal for developers looking to streamline Excel file automation in .NET applications.
$ dotnet add package FileFormat.Cells
Product Page | Docs | API Reference | Examples | Blog
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.
For practical, step-by-step guides on using FileFormat.Cells, check out our blog posts:
Install-Package FileFormat.Cells
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");
}
}
}
FileFormat.Cells is planning to add more functionalities to its features bucket. So, stay in touch for regular updates.
This project is licensed under the MIT License - see the LICENSE file for details.