如何将excel 2010文件导入C# [英] how to import excel 2010 file to C#

查看:128
本文介绍了如何将excel 2010文件导入C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有



如何将数据从excel 2010导入到dotnet C#?

解决方案

http ://exceldatareader.codeplex.com


查看 Excel数据读取器 - 在.NET中读取Excel文件 [ ^ ]和 EPPlus [ ^ ]



即使计算机上没有安装Excel,这些库也可以导入数据。



祝你好运

Espen Harlinn


你可以通过两种方法导入数据



1)使用interop

http ://stackoverflow.com/questions/7244971/import-e xcel-data-into-a-dataset-using-microsoft-office-interop-excel [ ^ ]



2)使用oledb

http://stackoverflow.com/questions/10447015/uploading-an-excel-sheet-and-importing-the-data-into-sql-server-database [ ^

Dear All

How i import data from excel 2010 to dotnet C#?

解决方案

http://exceldatareader.codeplex.com


Have a look at Excel Data Reader - Read Excel files in .NET[^] and EPPlus[^]

The libraries lets you to import the data, even if Excel is not installed on the computer.

Best regards
Espen Harlinn


you can import data by two method

1) using interop
http://stackoverflow.com/questions/7244971/import-excel-data-into-a-dataset-using-microsoft-office-interop-excel[^]

2)Using oledb
http://stackoverflow.com/questions/10447015/uploading-an-excel-sheet-and-importing-the-data-into-sql-server-database[^]


这篇关于如何将excel 2010文件导入C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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