Upload Excel file and extract data - asp.net mvc 3

chobo2 picture chobo2 · Feb 21, 2011 · Viewed 20.8k times · Source

I am wondering how do I extract data out of a 2007 excel file? I am using asp.net mvc 3. My plan is to have a upload section that you choose a file and hit upload. I have no clue after that what kind of format it will be or what I need to do to extract the values out.

Thanks

Answer

Matt picture Matt · Feb 22, 2011

Once you have the spreadsheet uploaded and you save it to a file on the web server it is quite easy to use LINQ to select the rows from the spreadsheet. Check this out for more info.

http://code.google.com/p/linqtoexcel/