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 / C++ / MFC
  4. Programmatically Reading an Excel Sheet

Programmatically Reading an Excel Sheet

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++com
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.
  • S Offline
    S Offline
    Sayan Mukherjee
    wrote on last edited by
    #1

    Hi, I have an excel sheet with some data. I need to read these data elements from a VC++ application. How do I do this? What I need to know specifically are: - What component to use for getting access to an excel sheet? - What are the methods exposed by this component which will be useful for this purpose? Any suggestions are welcome. Sample code or URL for the same will be appreciated as well. With best regards, Sayan Mukherjee Email:sayanmukherjee@indiatimes.com

    D 1 Reply Last reply
    0
    • S Sayan Mukherjee

      Hi, I have an excel sheet with some data. I need to read these data elements from a VC++ application. How do I do this? What I need to know specifically are: - What component to use for getting access to an excel sheet? - What are the methods exposed by this component which will be useful for this purpose? Any suggestions are welcome. Sample code or URL for the same will be appreciated as well. With best regards, Sayan Mukherjee Email:sayanmukherjee@indiatimes.com

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      I use (Excel) Automation. You can also use ODBC, but I have not personally tried that method.

      B 1 Reply Last reply
      0
      • D David Crow

        I use (Excel) Automation. You can also use ODBC, but I have not personally tried that method.

        B Offline
        B Offline
        basementman
        wrote on last edited by
        #3

        If you use ODBC, make sure that you set the cells as a named range in Excel.

        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