Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Plexmark

read in info from excel spreadsheet

This topic is 5224 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I tried to find this on the net and search here in the forums. Is it possible to read info from an excel spreadsheet into a c++ program? If you can, could you post a link to an example or post one please. Thanks in advance, Plex

Share this post


Link to post
Share on other sites
Advertisement
Yes. You''d want to look into office automation objects. Since it goes way beyond the scope of a single post to explain them I''ll link you to here [microsoft.com] which is a guide to using the automation objects in Visual C++.

If you have further questions about how to do specific things once you have the appropriate automation object setup (such as how to reorder worksheets, evaluate formulas, insert charts, etc) I''d be happy to help.

Share this post


Link to post
Share on other sites
Or you could use ODBC and connect to the excel file as a database and pull data using SQL queries, crazy easy and takes a very small amount of code to do, especially if you use the MFC CDatabase class. You can connect to excel, access, mysql, and likely many others using this method.

[edited by - DrEvil on June 3, 2004 4:46:19 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!