title: Reading Excel xlsb files in C#
body: <p>There is a new requirement for my project to read various types of Excel files. I am able to read .xls and .xlsx files using the ExcelDataReader dll from Codeplex. The problem is when I try to read .xlsb files. ExcelDataReader  cannot read from .xlsb files. Is there any other efficient way of reading xlsb files apart from using <code>Microsoft.Office.Interop.Excel</code> dll in server based applications .</p>
  
  <pre><code>IExcelDataReader excelReader = fileName.EndsWith(".xlsx")
                                                 ? ExcelReaderFactory.CreateOpenXmlReader(stream)
                                                 : ExcelReaderFactory.CreateBinaryReader(stream);
  while (excelReader.Read())
  {
       //myStuff read the file
  }
  </code></pre>