You must Sign In to post a response.
  • Category: ASP.NET

    Odbc excel driver external table is not in expected format

    Hi team,.

    I'm trying to connect with excel for inserting rows...
    We are getting issue as " external table is not in expected format".
    We have Microsoft office 2013 32 bit and extension used is .xlsx

    Strexcel= "Provider=Microsoft.Ace.oledb.12.0;Data source=excel path.xlsx;extended properties="Excel 12.0;hdr=Yes;";"

    Using this connection string.. we have template in shared drive.. then we are copying from this template and pasting into new path and renaming the file(just appending dates) and doing the insert process...

    Kindly do the needful
  • #769890
    Hi

    Your Connection string different for .xls and .xlsx you change depends on version.

    you can check cell format also

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #769891
    Hi

    Check your pc ODBC driver for excel application installed or not then only we can access to insert to excel sheet

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


  • Sign In to post your comments