CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How do I access an Excel file from a C++ program, search it for data and return info?

  1. #1
    Join Date
    Nov 2014
    Posts
    1

    How do I access an Excel file from a C++ program, search it for data and return info?

    I have been asked to create a program that accesses an inventory file done in excel, look for a alpha-numeric code, which will be inputed by the user, and return to the user informations related to the position of that code, and informations related to the header of the column in which the code resides.

    An example of the function I need the program to perform would be:

    User inputs: 1429-R1

    And the program returns: Marco’s 6A, 8/21/2014, 3/7/2014.

    using the following example of file:

    Marco's 6A
    Assessment 8/21/14 3/7/14

    1584-R1 1584-R1 1584-R1
    1461-2R1 1461-2R1 1461-2R1
    1429-R1 1429-R1 1429-R1

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,598

    Re: How do I access an Excel file from a C++ program, search it for data and return i

    You can do it through ODBC.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)