Skip to content

Latest commit

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

This sample project is for EPPlus 6, a newer sample for EPPlus 7 is available here... C# or VB

EPPlus samples

EPPlus samples for .NET Framework

The solution can be opened in Visual Studio for Windows.

NoSampleDescription
01Getting startedBasic usage of EPPlus: create a workbook, fill with data and some basic styling
02Read workbookRead data from a workbook
03Async/AwaitUsing async/await methods for loading and saving data
04Loading dataLoad data into a worksheet from various types of objects and create a table. It also demonstrates the Autofit columns feature.
05Import and Export csv files and create chartsThis sample shows how to load and save CSV files using the LoadFromText and SaveToText methods, how to use tables and how to use charts with more than one charttype and secondary axis.
06Calculate formulasHow to calculate formulas and add custom/missing functions in a workbook
07Open workbook and add data/chartOpens an existing workbook, adds some data and a pie chart.
08Sales reportCreate a report with data from a SQL database.
09Performance and protectionLoads 65 000 rows, styles them and sets a password.
10Read data using LinqThis sample shows how to use Linq with the Cells collection to read sample 9.
11Conditional formattingDemonstrates conditional formatting.
12Data validationHow to add various types of data validation to a workbook and read existing validations.
13FiltersHow to apply filters in a worksheet, table or a pivot table
14Shapes & ImagesShows how to add shapes and format them in different ways.
15Chart Styling & Themes Load a theme and create various charts and style them.
16SparklinesDemonstrates sparklines functionality.
17FX reportExchange rates report with data from a SQL database. Demonstrates some of the chart capabilities of EPPlus
18Pivot tablesDemonstrates the Pivot table functionality of EPPlus.
19Encryption and protectionThis sample produces a quiz, where the template workbook is encrypted and password protected.
20Create filesystem reportDemonstrates usage of styling, printer settings, rich text, pie-, doughnut- and bar-charts, freeze panes and row/column outlines
21VBA - Visual Basic for ApplicationsDemonstrates EPPlus support for VBA, includes a battleship game
22Ignore errorsVarious samples on how to ignore error on cells.
23CommentsSample showing how to add notes and threaded comments.
24SlicersSample showing how to add Pivot Table slicers and Tabel slicers
25Export to/from DataTableSample showing import/export rangedata with System.Data.DataTable
26Form controlsSample showing how to add differnt form controls and how to group drawings.
27Custom styles for tables and slicersSample showing how to create custom styles from tables, pivot tables and slicers.
28TablesSample showing how to work with tables.
29External linksShows how to work with links to external workbooks
30Sorting RangesShows how to work with the Sort method for ranges and tables
31Html ExportShows how to export tables and ranges to HTML
32Json ExportShows how to export tables and ranges to JSON
33ToCollectionShows how to export data from worksheets and tables into an IEnumerable<T> where T is a class.

Output files

The samples above produces some workbooks - the name of each workbook indicates which sample that generated it. These workbooks are located in a subdirectory - named "SampleApp" - to the output directory of the sample project.

Also see wiki on https://github.com/EPPlusSoftware/EPPlus/wiki for more details

About

EPPlus samples for .NET Framework. More details in Readme.md.

Topics

Resources

Stars

48 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages