title: Error when trying to read an .xls file using EPPlus
body: <p>The following code is working fine for .xlsx, but it's not working for .xls. I got this error message</p>
  
  <blockquote>
    <p>Can not open the package. Package is an OLE compound document. If this is an encrypted package, please supply the password</p>
  </blockquote>
  
  <p><strong>Code</strong></p>
  
  <pre><code>string filepath = txtBrowse.Text;
  
  FileStream stream = System.IO.File.Open(filepath, FileMode.Open, FileAccess.ReadWrite);
  //1. Reading from a binary Excel file ('97-2003 format; *.xls)
  IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
  
  FileInfo newFile = new FileInfo(filepath);
  
  using (ExcelPackage package = new ExcelPackage(newFile))
  {
      string sheetName = System.DateTime.Now.ToShortDateString();
  
      foreach (OfficeOpenXml.ExcelWorksheet sheet in package.Workbook.Worksheets)
      {
          // Check the name of the current sheet
          if (sheet.Name == sheetName)
          {
              package.Workbook.Worksheets.Delete(sheetName);
              break; // Exit the loop now
          }
      }
  
      ExcelWorksheet worksheet = package.Workbook.Worksheets.Add(System.DateTime.Now.ToShortDateString());
  }
  </code></pre>
  
  <p>How do I do this correctly?</p>