title: Read Excel file
body: <p>I am writing some code to read an excel file, but unfortuantely the excel file contains more than 300 columns and I need to read all 300. </p>
  
  <p>I've been using some 3rd Part libraries to do this <a href="http://code.google.com/p/linqtoexcel/" rel="nofollow">LinqToExcel</a> but they can only read a <strong>maximum of 256 columns</strong></p>
  
  <pre><code>        var excel = new ExcelQueryFactory(FileName);
  
          var recs = (from ws in excel.Worksheet&lt;Sample&gt;("data export final")
                      select ws).ToList()
  </code></pre>
  
  <p>Does anyone know how I can read all 300 columns, preferabbly without having to install Microst Office as this will be running on a server which doesn't have that installed</p>