Caratteristiche e panoramica tecnica

EPPlus, il motore .NET per i workbook Excel

Creare, leggere, modificare e calcolare i workbook Excel in codice .NET gestito al 100%. Importare ed esportare dati in molti formati. Non è necessario 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
Funzioni di Excel nel motore di calcolo integrato
760.000
Celle scritte al secondo
Come abbiamo misurato
73
Paesi con clienti EPPlus
17
Anni di sviluppo attivo, open source dal 2009 e commerciale dal 2020

Funzionalità supportate

EPPlus è una libreria .NET Framework/.NET Core per la gestione dei fogli di calcolo Office Open XML , distribuiti tramite Nuget . Consulta la nostra pagina Software Bill Of Material per i framework .NET supportati. EPPlus è scritto interamente in codice gestito e non dipende da altre librerie come Microsoft Excel.

La libreria è progettata pensando allo sviluppatore. Il nostro obiettivo è sempre stato che uno sviluppatore con conoscenza di Excel o di qualsiasi altra libreria di fogli di calcolo si aggiorni facilmente sull'API. O - come ha detto qualcuno - intelligenza la tua strada verso la vittoria!

Formulas & filters

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

Mostra tutte le caratteristicheMostra meno
Leggi la guida: Formulas & filters

Worksheets & ranges

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

Mostra tutte le caratteristicheMostra meno
  • 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
Leggi la guida: Worksheets & ranges

Tables & pivot tables

Formatted tables and pivot tables, including pivot table calculation.

Mostra tutte le caratteristicheMostra meno
Leggi la guida: Tables & pivot tables

Charts & drawing objects

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

Mostra tutte le caratteristicheMostra meno
Leggi la guida: Charts & drawing objects

Styling

Cell styles, conditional formatting and themes.

Mostra tutte le caratteristicheMostra meno
Leggi la guida: 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
Mostra tutte le caratteristicheMostra meno
  • 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
Leggi la guida: Import & export data

Output formats

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

Mostra tutte le caratteristicheMostra meno
Leggi la guida: Output formats

VBA & protection

Protection, encryption, signatures, sensitivity labels and macros.

Mostra tutte le caratteristicheMostra meno
  • 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
Leggi la guida: VBA & protection

Performance con quaderni di lavoro grandi

Un workbook da 63 MB con 200 colonne e 100.000 righe, dove metà delle celle contiene interi e metà stringhe di 36 caratteri.

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

Visualizza il codice sorgente del test
26.2 s
Crea il workbook e salvalo su disco
15.7 s
Carica il workbook dal disco

Pronto a cominciare?

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 questa pagina per le funzionalità aggiunte alla libreria dalla versione 5 in poi.