Link to home
Start Free TrialLog in
Avatar of vijaysaravanan
vijaysaravanan

asked on

how to acess windows (office) excel file using C program

hallo
i am intersted in reading the excel file using a C program. If i get some ideas for doing this program or some sample codes, if you have some header files for doing this work also is more apprecialble.
I am waiting for a kind reply regarding this query.

yours friendly
vijay
Avatar of balu_natarajan
balu_natarajan

#import C:\Program Files\Microsoft Office\Office\excel9.olb

if know COM u can do it. use interfaces supported excel.

read
Application object model
Avatar of vijaysaravanan

ASKER

hallo balu_natarajan,

ok
i will import this file but i am not sure how to acess the datas that are present in the table
please give me some sample code

yours friendly
vijay
hallo balu
you have given the help for vc++ but i want to do only in C program,

i dont know how to proceed
yours friendly
vijay
ASKER CERTIFIED SOLUTION
Avatar of balu_natarajan
balu_natarajan

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
ok balu
i have borland c++ with me in that i have accessed a sample excel file but i could not able to read the value

http://info.borland.com/borlandcpp/papers/olewpapr/olewpapr.html

but i could not able to read the cell value

i used OLE borland c++
i need sample code

yours friendly
vijay
search in goole.com.