推荐一个教程来读取C#中的Excel文件 [英] recommend a tutorial to read Excel file in C#
问题描述
我具有C#的经验,但是使用C#从Excel读取内容的经验有限.我的任务非常简单,只需阅读Excel文档每一行的每一列并检索它们的值即可.
I have experience in C# but limited experience in using C# to read content from Excel. My task is very simple, just read each column of each row of an Excel document and retrieve their values.
任何适合初学者的好教程或示例吗?我正在使用VSTS 2008 + C#+ .Net 3.5.
Any good tutorials or samples for a beginner? I am using VSTS 2008 + C# + .Net 3.5.
我正在使用Excel 2007.
I am working with Excel 2007.
推荐答案
Format of Excel 2007 files isn't straigtforward. Getting a text value of a cell using Open XML Format SDK 2.0 requires a lot of actions. If you're not going to use third party libraries, which don't know about, you have to get deeply into this SDK. There are tutorials, but I dont't know easy solution even for your simple task.
这篇关于推荐一个教程来读取C#中的Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!