title: Open XML Reading Excel file does not enter loop to read excel sheet
body: <p>I have a scenario where I need to read Excel file in an MVC Application, I need this to run on the server, therefore I am using Open XML, I have a issue where my code does not enter the loop of rows in the sheet, please see my code below and advice on how I can rectify my code.</p>
  
  <pre><code>if (file.ContentLength &gt; 0)
  {
      string path = file.FileName;    
      using (SpreadsheetDocument doc = SpreadsheetDocument.Open(path, false))
      {
          WorkbookPart workbookPart = doc.WorkbookPart;
          WorksheetPart worksheetPart = workbookPart.WorksheetParts.First();
          SheetData sheetData = worksheetPart.Worksheet.Elements&lt;SheetData&gt;().First();
  
          foreach (Row r in sheetData.Elements&lt;Row&gt;())
          {
              foreach (Cell c in r.Elements&lt;Cell&gt;())
              {
                  string text = c.CellValue.Text;
              }
          }
      }
  }
  </code></pre>
  
  <p>Any ideas, your help will be greatly appreciated, I have been trying multiple approaching but I am not getting in the foreach loop fr some odd reason.</p>
  
  <p>I am using Excel 2013 and please see below image of my workbook.</p>
  
  <p><a href="https://i.stack.imgur.com/QJGIm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QJGIm.png" alt="Here is my Excel sheet template"></a></p>