Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem in Importing data from Excel (Urgent)

Problem in Importing data from Excel (Urgent)

Scheduled Pinned Locked Moved C#
helpcsharp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhi1581
    wrote on last edited by
    #1

    Hi I am using following code to Import data from Excel File in .NET 2005 DataSet myDataSet = new DataSet(); string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0"; OleDbConnection conn = new OleDbConnection(strConn); OleDbDataAdapter addapter = new OleDbDataAdapter(); addapter.SelectCommand = new OleDbCommand("Select * From Mercury$", conn); addapter.Fill(myDataSet); On Executing it is giving me Following error "Could not find installable ISAM." I am using Excel2003 installed on Windows 2000. Thanks in advance Abhi

    A K 2 Replies Last reply
    0
    • A Abhi1581

      Hi I am using following code to Import data from Excel File in .NET 2005 DataSet myDataSet = new DataSet(); string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0"; OleDbConnection conn = new OleDbConnection(strConn); OleDbDataAdapter addapter = new OleDbDataAdapter(); addapter.SelectCommand = new OleDbCommand("Select * From Mercury$", conn); addapter.Fill(myDataSet); On Executing it is giving me Following error "Could not find installable ISAM." I am using Excel2003 installed on Windows 2000. Thanks in advance Abhi

      A Offline
      A Offline
      AB7771
      wrote on last edited by
      #2

      Try this Extended Property="""Excel 9.0"""". i guess that works for u. Regards, Pramod

      1 Reply Last reply
      0
      • A Abhi1581

        Hi I am using following code to Import data from Excel File in .NET 2005 DataSet myDataSet = new DataSet(); string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0"; OleDbConnection conn = new OleDbConnection(strConn); OleDbDataAdapter addapter = new OleDbDataAdapter(); addapter.SelectCommand = new OleDbCommand("Select * From Mercury$", conn); addapter.Fill(myDataSet); On Executing it is giving me Following error "Could not find installable ISAM." I am using Excel2003 installed on Windows 2000. Thanks in advance Abhi

        K Offline
        K Offline
        ketankumar
        wrote on last edited by
        #3

        You need to check proper registry entry of Msexcl40.dll. Please go through following link and follow the steps given. http://support.microsoft.com/kb/209805[^] Regards, Ketan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups