上传Excel文件和提取数据 - asp.net MVC 3 [英] Upload Excel file and extract data - asp.net mvc 3
问题描述
我想知道我怎么提取数据了2007年的Excel文件?我使用asp.net的MVC 3,我的计划是让你选择一个文件,上传打一个上传部分。我以后不知道什么样的格式将是还是我需要做什么来提取值了什么。
感谢
< DIV CLASS =h2_lin>解决方案
一旦你的电子表格,并上传您保存到这是很容易使用LINQ选择从电子表格中的行Web服务器上的文件。检查了这一点获得更多信息。
http://code.google .COM / p / linqtoexcel /
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
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屋!