mohsen2hasani / ExcelMaker

Make excel file from any list of object or dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

install "EPPlus" nuget and use this class to get excel file from any list of objects in .net core projects:

example:

public class TestController : Controller
{
    public IActionResult Index()
    {
        //var model = list of any classes
        var excel = model.GetExcel("ExcelFileName");
        return File(excel.FileContents, excel.ContentType, excel.FileDownloadName);
    }
}

About

Make excel file from any list of object or dictionary


Languages

Language:C# 100.0%