Export data - DON-PHAM/EPPlus GitHub Wiki

Export data from a spreadsheet

From the Cells property (ExcelRange) you can access these methods to write:

  • ToText and ToTextAsync - Writes a range to a csv string.

  • SaveToText and SaveToTextAsync - Writes a range to a csv file.

  • ToDataTable - Exports data from a range to a System.Data.DataTable

  • GetValue<T> - Gets a value, with the option to specify a datatype

  • Value - Gets or sets the value of the range.