Link to home
Start Free TrialLog in
Avatar of Roger Alcindor
Roger Alcindor

asked on

How to read data from an Excel spreadsheet Cell in XE2 C++ builder

I have just installed Embarcadero XE2 C++ Builder Enterprise.
How can I open an Excel spreadsheet and read data from a particular Cell and  Worksheet?
 
Avatar of paxapta
paxapta

Use instaled components or You must generate COM objects, and use they as explained below:
http://www.vbforums.com/showthread.php?t=391665
Avatar of Roger Alcindor

ASKER

Where do I find "Installed Components" ?
Avatar of jkr
Aside from COM, you could use ODBC to obtain data from Excel, see e.g. http://support.microsoft.com/kb/130137 ("HOWTO: How to Use ODBC to Run SQL SELECT on Microsoft Excel Data") - you'll find some helpful classes for managing a SQL connection at http://www.codeguru.com/Cpp/data/mfc_database/article.php/c1173 ("Classes for direct SQL calls with ODBC")
SOLUTION
Avatar of Roger Alcindor
Roger Alcindor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I solved the issue myself