Package | Version |
---|---|
SimplyWorks.ExportToExcel |
ExportToExcel is a library that provides extensions to IEnumerable Interface extensions.
ExportToExcel is available as a package on NuGet.
To use ExportToExcel, you will require the Documentformat.OpenXml
package.
- ExportToExcel
ExportToExcel has 3 overloads. You can pass it an enumerable of data, where the column names are generated from TEntity's properties. One where you can pass both an enumerable of data and an enumerable of string, where the column names will be taken from this enumerable. And finally, one where you can pass it a dictionary that will be used to generate the column names.
- WriteExcel
WriteExcel has 6 overloads, taking in column names from a dictionary, as well as some data in an IEnumberable array. It also takes in a file stream to start writing onto that very file with the data it's collected.
If you encounter any bugs, don't hesitate to submit an issue. We'll get back to you promptly!