获取Excel文档列名称 [英] Get Excel Document column Names

查看:90
本文介绍了获取Excel文档列名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想比较共享点列表中的列和excel数据表,我试图使用oledb数据访问来获取列,但没有用.

i want compare the columns which is  in sharepoint list  and excel data sheet i tried to get columns using oledb data access but no use.

注意:- 我不想使用  Microsoft.Interop.dll 

推荐答案

我们可以使用Open XML SDK来实现它.以下带有代码的文章供您参考:

We can use Open XML SDK to achieve it. The following article with the code for your reference:

方法:在电子表格文档中获取列标题(Open XML SDK)

https://msdn.microsoft.com/en-us/library/office/cc822064 .aspx

最好的问候,

丹尼斯


这篇关于获取Excel文档列名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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