上传Excel文件并提取数据 - asp.net mvc 3 [英] Upload Excel file and extract data - asp.net mvc 3

查看:154
本文介绍了上传Excel文件并提取数据 - asp.net mvc 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何从2007年的excel文件中提取数据?我正在使用asp.net mvc 3.我的计划是有一个上传部分,您选择一个文件并点击上传。我没有任何线索,那将是什么样的格式,或者我需要做的是提取价值。

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.

谢谢

推荐答案

一旦您上传了电子表格,并将其保存到Web服务器上的文件,则很容易使用LINQ从电子表格中选择行。请查看此更多信息。

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/

这篇关于上传Excel文件并提取数据 - asp.net mvc 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆