如何通过C sharp访问excel表 [英] How access excel sheet through C sharp
本文介绍了如何通过C sharp访问excel表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用c sharp在Visual Basic中访问excel工作表
我尝试过:
i尝试了visual basic但我实际上并不明白我完全不了解visual basic
解决方案
参见使用MS Excel(xls / xlsx)使用MDAC和Oledb [ ^ ]。
为了简单起见,您可以以 CSV (逗号分隔值)格式导出Excel工作表。
使用TextFieldParser
查看此处的文章:
http://www.dotnetperls.com/textfieldparser [ ^ ]
i need to access excel work sheet using c sharp in visual basic
What I have tried:
i tried visual basic but i didn't understand actually i dont know visual basic perfectly
解决方案
See Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^].
To keep things simple you could export your Excel sheet in CSV (comma separated value) format.
See the article here for an example usingTextFieldParser
:
http://www.dotnetperls.com/textfieldparser[^]
这篇关于如何通过C sharp访问excel表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文