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. Save from excel

Save from excel

Scheduled Pinned Locked Moved C#
questiondata-structureshelp
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.
  • N Offline
    N Offline
    neliocc
    wrote on last edited by
    #1

    Hi everybody. Im am working in an application and i need save the information in an excel file into a dataset, or an array. Anybody can tell me how can i do that? If anybody can help me i will be gratefull.

    S 1 Reply Last reply
    0
    • N neliocc

      Hi everybody. Im am working in an application and i need save the information in an excel file into a dataset, or an array. Anybody can tell me how can i do that? If anybody can help me i will be gratefull.

      S Offline
      S Offline
      seee sharp
      wrote on last edited by
      #2

      1. You can use ODBC and read Excel data. That data you can store anywhere you want. 2. Using Excel.Application object, you can read information form Excel sheet and save it to array or where ever you want. :):) - ashish

      A 1 Reply Last reply
      0
      • S seee sharp

        1. You can use ODBC and read Excel data. That data you can store anywhere you want. 2. Using Excel.Application object, you can read information form Excel sheet and save it to array or where ever you want. :):) - ashish

        A Offline
        A Offline
        Ariadne
        wrote on last edited by
        #3

        Using the Excel.Aplication object you do a so called early binding. This is the best way, if you are shure, that your customers use the same Excel-version as you use. If that is not shure, you have to use a late binding, which is much more complicate. But there are descriptions about this way. (I 'm just working on such solution, and put a http://www.codeproject.com/script/comments/forums.asp?forumid=1649&df=100&mpp=50&fr=51&select=1143236#xx1143236xx in this list, but got no answer until now. Perhaps you should look http://www.codeproject.com/dotnet/ExportToExcel.asp too. There is also a way to write an Excel 2.1 output direct to a file. (I did that just (reading a standart *.xls file and add my data in BIFF format. It is not too difficult). Ask me if you are interested.:) Ariadne

        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