Read Excel sheet to datatable

Read Excel sheet to datatable

Anonymous
Not applicable
1,763 Views
2 Replies
Message 1 of 3

Read Excel sheet to datatable

Anonymous
Not applicable

Hi,

I want to read an Excel sheet into a datatable. But I cannot go forward as it gives me an error, as follows.

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

What is the other option?

Thanks

0 Likes
Accepted solutions (1)
1,764 Views
2 Replies
Replies (2)
Message 2 of 3

fieldguy
Advisor
Advisor
0 Likes
Message 3 of 3

Keith.Brown
Advisor
Advisor
Accepted solution

You can use spreadsheet lite.  It is a free sdk for working with spreadsheets in .net.

 

http://spreadsheetlight.com/

 

Example of exporting to a datatable.  See the pic for the link.

 

http://spreadsheetlight.com/sample-code/  

 

spreadsheetlight datatable.png

0 Likes