I tried below code... it's doesn't work as well... any got solution for this? Thanks.

using (OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"" + fileName + "\";Extended Properties=Excel 8.0;"))

I don't think I have anything to add to this thread regarding Excel. Adatapost already linked to all of my knowledge for the product :P

>>I tried below code... it's doesn't work as well... any got solution for this? Thanks.

What do you mean by "doesnt work well"? Is it slow or throwing an exception?

I don't think I have anything to add to this thread regarding Excel. Adatapost already linked to all of my knowledge for the product :P

>>I tried below code... it's doesn't work as well... any got solution for this? Thanks.

What do you mean by "doesnt work well"? Is it slow or throwing an exception?

Ya, its throw an exception which state:

{"External table is not in the expected format."}

Can you upload the Excel file in question? Click "Go Advanced" then "Manage Attachments" and upload a .ZIP file containing the spreadsheet.

Ya, its throw an exception which state:

{"External table is not in the expected format."}

I dunno use that ODBCconnection string method.. who can teach me?

This article has been dead for over six months. Start a new discussion instead.