Redian新闻
>
Help: How to display data from excel in C# windows form
avatar
Help: How to display data from excel in C# windows form# Programming - 葵花宝典
b*y
1
I have an excel file which has 10 rows of data. I want to edit a button on a
Windows from, once the button is clicked, then the data in the excel is
displayed on the Window form as a dataset. How do I code that?
avatar
c*h
2
normally you can find excel, word object, i am not sure whether com or not,
pls read vba documentation
then you should can use your c# to call the functions

a

【在 b******y 的大作中提到】
: I have an excel file which has 10 rows of data. I want to edit a button on a
: Windows from, once the button is clicked, then the data in the excel is
: displayed on the Window form as a dataset. How do I code that?

avatar
a*x
3
check microsoft.office.interop.excel namespace.

a

【在 b******y 的大作中提到】
: I have an excel file which has 10 rows of data. I want to edit a button on a
: Windows from, once the button is clicked, then the data in the excel is
: displayed on the Window form as a dataset. How do I code that?

avatar
c*t
4
you could treat excel as a "database"

a

【在 b******y 的大作中提到】
: I have an excel file which has 10 rows of data. I want to edit a button on a
: Windows from, once the button is clicked, then the data in the excel is
: displayed on the Window form as a dataset. How do I code that?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。