Hello all.
I have trouble listing all worksheet's names from an excel file.
I know that by using an OleDbConnection you can connect to an excel file and with a command like this:
select * from [sheet1$]
you can retrieve all data from sheet1, since sheet1 is considered as a table.
The problem is when I have multiple sheets how can I find all sheets' names?
For example if I want to Load an .xls file, I want a combo box to display all the sheets in order to choose from where to retrieve the data from.
Thanx in advance
I have trouble listing all worksheet's names from an excel file.
I know that by using an OleDbConnection you can connect to an excel file and with a command like this:
select * from [sheet1$]
you can retrieve all data from sheet1, since sheet1 is considered as a table.
The problem is when I have multiple sheets how can I find all sheets' names?
For example if I want to Load an .xls file, I want a combo box to display all the sheets in order to choose from where to retrieve the data from.
Thanx in advance