c# - 上传Excel文件并提取数据-asp.net mvc 3

标签 c# asp.net-mvc excel excel-2007

我想知道如何从 2007 Excel 文件中提取数据?我正在使用 asp.net mvc 3。我的计划是有一个上传部分,您可以选择一个文件并点击上传。在那之后我不知道它将是哪种格式或我需要做什么来提取值。

谢谢

最佳答案

一旦您上传了电子表格并将其保存到网络服务器上的文件中,就可以很容易地使用 LINQ 从电子表格中选择行。查看此以获取更多信息。

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

关于c# - 上传Excel文件并提取数据-asp.net mvc 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5062092/

相关文章:

c# - asp.net的特点

asp.net-mvc - 是否可以在 ASP.NET MVC 中本地化 URL/路由?

html - 从网页获取数据

c# - 查找在 Visual Studio 或单元测试中未使用 await 的异步用法

c# - EF4 复杂的 Select() : Return IEnumerable or IEnumerable<MyCustomDto> from Business Tier?

c# - 为什么 PLINQ 只使用两个线程?

asp.net - 如何从 HttpResponseMessage 获取对象?

asp.net - Entity Framework 和 MVC 3 : The relationship could not be changed because one or more of the foreign-key properties is non-nullable

delphi - Ole Excel Delphi 日期问题

具有大数据的 PhpSpreadsheet