I have an windows application. I browse for the file and select the excel file using OpenFileDialog control. The excel file contains email id’s in column A. I want to populate the list-box with excel file column values. Office 2003 is installed on my machine. Can somebody Please help me out?
Thanks in Advance.
I have an windows application. I browse for the file and select the excel
Share
Refer: Reading Excel files from C#
To connect to an excel file you need the appropriate connection string:
After use the OleDb classes to query the information from the file:
So you need to replace “YourExcelPath” with the path of your excel file..