Click to See Complete Forum and Search --> : Visual C++ and Excel


mabroe
June 25th, 2002, 09:15 PM
Hey all-

I'm a C programmer used to a Unix system just learning how to
use Visual C++, so my question is probably really simple:

How do I read in an excel table into my C++ code?

To be a little more specific suppose I have a 10 by 10 table of real numbers, is there a straitforward way to reading those 100 numbers into my code?

thanks,

matt

kevin.horgan
June 26th, 2002, 09:47 AM
Hi There,

The following link takes you to a site explaining reading Excel sheets from .NET. The example given is in C#, it should be very straight forward to convert this to C++ if that is what you need.

http://www.c-sharpcorner.com/winforms/ExcelReadMG.asp

Good luck,

Kevin