I have an excel generated using EPPlus
, I want to get all the column names in a sheet. I have tried using LinqToExcel
var excelFile = new ExcelQueryFactory(excelPath)
IQueryable<Row> excelSheetValues = from workingSheet in excelFile.Worksheet(sheetName) select workingSheet;
string[] headerRow = excelFile.GetColumnNames(sheetName).ToArray();
But it is throwing me an error, CAn't we get the column names of an excel using linq to excel for epplus, as it is working fine while working with Micrsoft Office dlls