使用C#识别并获取MS Excel中每个单元格的数据 [英] Identify and Get the Data of Every Cell in MS Excel using C#
本文介绍了使用C#识别并获取MS Excel中每个单元格的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好..
我是非专业的程序员类型,但我正在开发桌面应用程序。我只想问是否可以使用C#代码获取MS Excel中每个单元格的数据?
解决方案
是的,这是可能的。基本上,您可以将excel文件视为数据库。使用 OLE DB [ ^ ],您可以像处理数据库一样操作excel文件中的数据。
现在有关示例,请参阅以下内容。
使用C#将Excel文件读入ASP.NET中的DataSet [ ^ ]
如何使用C#中的连接字符串阅读Microsoft Excel 2007 [ ^ ]
Hi to all ..
I am a non-expert programmer type but I am developing Desktop Applications. I just wanna ask if is it possible to get the data of each cell in MS Excel using C# codes?
解决方案
Yes it is possible. Basically, you can treat the excel file like a database. Using OLE DB[^], you can manipulate the data in your excel file as if you were doing it against a database.
Now for the examples, see the following.
Read Excel File into DataSet in ASP.NET Using C#[^]
How to Read Microsoft Excel 2007 Using a Connection String in C#[^]
这篇关于使用C#识别并获取MS Excel中每个单元格的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文