public ActionResult ExcelRead() { try { string[,] TestArray = new string[3, 5]; FileInfo newFile = new FileInfo(Server.MapPath(@"\Content\ExcelPackageNewFile.xlsx")); using (ExcelPackage xlPackage = new ExcelPackage(newFile)) { ExcelWorkbook myWorkbook = xlPackage.Workbook; // Getting the worksheet by its name... ExcelWorksheet myWorksheet = myWorkbook.Worksheets["Sheet1"]; //I want to read excel data here, please help me,Iam very new to this } return RedirectToAction("ExcelRead"); } catch (Exception ex) { return RedirectToAction("ExcelRead"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)