An open API service indexing awesome lists of open source software.

https://github.com/simplify9/exporttoexcel

A library that provides extensions to IEnumerable Interface extensions.
https://github.com/simplify9/exporttoexcel

Last synced: about 1 year ago
JSON representation

A library that provides extensions to IEnumerable Interface extensions.

Awesome Lists containing this project

README

          

[![Build Status](https://dev.azure.com/simplify9/Github%20Pipelines/_apis/build/status/simplify9.ExportToExcel?branchName=master)](https://dev.azure.com/simplify9/Github%20Pipelines/_build/latest?definitionId=168&branchName=master)

![Azure DevOps tests](https://img.shields.io/azure-devops/tests/Simplify9/Github%20Pipelines/168?style=for-the-badge)

| **Package** | **Version** |
| :----------------:|:----------------------:|
|```SimplyWorks.ExportToExcel```| ![Nuget](https://img.shields.io/nuget/v/SimplyWorks.ExportToExcel?style=for-the-badge)

## Introduction
*ExportToExcel* is a library that provides extensions to [IEnumerable Interface](https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerable?view=netcore-3.1) extensions.

## Getting Started
*ExportToExcel* is available as a package on [NuGet](https://www.nuget.org/packages/SimplyWorks.ExportToExcel/).

To use *ExportToExcel*, you will require the [`Documentformat.OpenXml`](https://www.nuget.org/packages/DocumentFormat.OpenXml/) package.

## Functions Available
1. *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.

2. *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.

## Getting support 👷
If you encounter any bugs, don't hesitate to submit an [issue](https://github.com/simplify9/ExportToExcel/issues). We'll get back to you promptly!