Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 478 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 478 Bytes

ExcelReader

ExcelReader read excel file and return json , Dictonary, And collecton

How to use

C# code :

string sWebRootFolder = _hostingEnvironment.WebRootPath; string sFileName = @"excelfile.xlsx"; string path = Path.Combine(sWebRootFolder, sFileName);
IExcelDataReader iExcelDataReader = ExcelReaderFactory.Reader(path); var response = iExcelDataReader.AsIEnumerable(); // return Dictonary // var response = iExcelDataReader.AsIEnumerable(); // return json