how to write from excel to data table when ms office is not installed on the server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshrasm
    Contributor
    • Nov 2007
    • 254

    how to write from excel to data table when ms office is not installed on the server

    Hi

    I have to write data from excel to data table on my server and ms office is not installed on the server. I am able to save the excel file but I don't how I can write it to data table from excel when ms office is not installed.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I've never used excel as a database for an application...b ut it looks like you can use OLEDB to connect to and manipulate excel sheets. So, maybe you don't need to have excel installed?

    There is a redistribution package provided by Microsoft for it's Office suit. I remember looking it up a few months ago for someone else.

    -Frinny

    Comment

    • mukeshrasm
      Contributor
      • Nov 2007
      • 254

      #3
      I used OLEDB but sometime connection does not establishes and gives error.

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        using OLEDB isthe best and the simple way to retrieve data out of excel files....


        if youre getting error connecting, check for the version.... of the excel file your'e accessing and the version specified in the connection string...

        and also check that the excel file is not open when youre accessing the file through code

        Comment

        Working...