Solved

How to access Excel data from a vc++ app.?

Posted on 1997-07-22
3
202 Views
Last Modified: 2013-11-20
Hi experts,
I want to access data from an Excel spreadsheet to reside in my Visual C++ application. Does one have to take use of the database machinery or are there other possibilities, such as reading the data directly from an Excel file. If this  isn't possibility how do I "make" a "Excel database"?

OBS! My e-mail adr. is:t94jfr@tdb.student.uu.se
0
Comment
Question by:Jac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1302728
There are several ways you can retrieve data from an Excel spreadsheet. You should take a look at the book Microsoft Excel Developer's Kit.
0
 
LVL 8

Accepted Solution

by:
gelbert earned 90 total points
ID: 1302729
You should impliment your application as OLE enabled to use COM mechanism to transfer data from one application to another. You should request IDataObject interface of Excel and using this interface you can recieve data by specifing a format, a medium, and, optionally, a target device for which the data should be rendered.
0
 

Author Comment

by:Jac
ID: 1302730
Thanks for yoyr answer.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question