Características y visión general técnica

EPPlus, el motor .NET para libros de Excel

Crear, leer, modificar y calcular libros de Excel en código 100% gestionado de .NET. Importar y exportar datos en muchos formatos. No se requiere Microsoft Excel.

// EPPlus 8: set the license once at startup
ExcelPackage.License.SetNonCommercialPersonal("Your name");

using var package = new ExcelPackage();
var sheet = package.Workbook.Worksheets.Add("Sales");

sheet.Cells["A1"].LoadFromCollection(
    orders, true, TableStyles.Medium2);
sheet.Cells["F2"].Formula = "SUM(D2:D100)";
package.Workbook.Calculate();

package.SaveAs("sales.xlsx");
478
Funciones de Excel en el motor de cálculo integrado
760.000
Celdas escritas por segundo
Cómo medimos
73
Países con clientes de EPPlus
17
Años de desarrollo activo, código abierto desde 2009 y comercial desde 2020

Características admitidas

EPPlus es una biblioteca .NET Framework/.NET Core para gestionar hojas de cálculo Office Open XML , distribuidas a través de Nuget . Consulta nuestra página de Lista de Materiales de Software para frameworks .NET compatibles. EPPlus está completamente escrito en código gestionado y no depende de ninguna otra biblioteca como Microsoft Excel.

La biblioteca está diseñada pensando en el desarrollador. Nuestro objetivo siempre ha sido que un desarrollador con conocimientos de Excel o cualquier otra librería de hojas de cálculo se ponga al día fácilmente con la API. O —como alguien dijo— ¡intellise tu camino hacia la victoria!

Formulas & filters

A built-in calculation engine with no dependency on Excel or any other library, plus filters and slicers.

Mostrar todas las característicasMostrar menos
Lee la guía: Formulas & filters

Worksheets & ranges

Rows, columns and cells, and everything you do with them.

Mostrar todas las característicasMostrar menos
  • Add, remove, reorder, rename and hide worksheets
  • Print areas, page breaks, document and printer settings
  • Headers and footers
  • Worksheet properties such as gridlines and tab colors
  • Named ranges
  • Used range and taking and skipping rows and columns
  • Sort top to bottom or left to right, with custom lists, and the sort state is updated
  • FillNumber, FillDateTime and FillList
  • Copy styles only, or exclude cell properties when copying
  • Row and column access via EntireRow and EntireColumn
  • Hyperlinks
  • Notes with rich text, and threaded comments with mentions and resolve/re-open
  • Query cells and ranges with LINQ
  • Validation types: integer, decimal, list, date, time, any and custom
Lee la guía: Worksheets & ranges

Tables & pivot tables

Formatted tables and pivot tables, including pivot table calculation.

Mostrar todas las característicasMostrar menos
Lee la guía: Tables & pivot tables

Charts & drawing objects

Charts, shapes, pictures, form controls and other drawing objects.

Mostrar todas las característicasMostrar menos
Lee la guía: Charts & drawing objects

Styling

Cell styles, conditional formatting and themes.

Mostrar todas las característicasMostrar menos
Lee la guía: Styling

Import & export data

Move data in and out of worksheets with one line of code.

  • Import from collections, arrays, DataTables, DataReaders and dictionaries
  • Export to CSV, JSON, DataTable or IEnumerable<T>
  • Load and save files, streams and byte arrays, with async/await
  • Read and write CSV and other text files via LoadFromText and SaveToText, also fixed-width
Mostrar todas las característicasMostrar menos
  • Attributes on your classes control styling, number formats and formulas when loading collections
  • Fixed-width text files, via LoadFromText and ToText
  • Write to a web response stream without file access
  • Templates
  • Reads and writes xlsx and xlsm. The xlsx Strict format is not supported.
  • Reads xltx, crtx and thmx
  • External connections and query tables: Power Query, database, OLAP, web and text connections, and pivot tables with an external connection as source
Lee la guía: Import & export data

Output formats

Render worksheet content as HTML for web pages, with PDF on the way.

Mostrar todas las característicasMostrar menos
Lee la guía: Output formats

VBA & protection

Protection, encryption, signatures, sensitivity labels and macros.

Mostrar todas las característicasMostrar menos
  • Sensitivity labels via Microsoft Information Protection
  • Open password protected workbooks
  • Standard encryption for older Office versions, Agile for Office 2010 and later
  • VBA signatures: Legacy, Agile and V3, with five hash algorithms
Lee la guía: VBA & protection

Rendimiento con cuadernos grandes

Un libro de trabajo de 63 MB con 200 columnas y 100.000 filas, donde la mitad de las celdas contiene enteros y la otra mitad cadenas de 36 caracteres.

EPPlus 8.7.2, Intel Core i9-12900HK (14 cores, 2.5 GHz), 64 GB RAM, NVMe SSD, Windows 11, .NET 10

Consulta el código fuente de la prueba
26.2 s
Crea el cuaderno de trabajo y guárdalo en disco
15.7 s
Carga el libro de trabajo desde el disco

¿Listo para empezar?

A battle-hardened codebase after many years as the world's most downloaded .NET library for spreadsheets, with quality ensured by thousands of unit tests.

The source code for EPPlus is openly available on GitHub , distributed under the Polyform Noncommercial license.

Consulta esta página para las funciones añadidas a la biblioteca a partir de la versión 5 en adelante.