how to create an excel file using c code

Newbie Member
16May2011,16:49   #1
Anil_c's Avatar
Friends,

Please guide me how can I create an excel file and write some data into it using c/c++ code. A sample code is much more helpful.

Thanks,
Anil
Mentor
17May2011,11:41   #2
xpi0t0s's Avatar
Depends how you want to do it. Do you want to control Excel through DDE to create the file and perform operations on it on your behalf, or do you want to create the file directly? What version of the Excel filetype do you want to use? Does it have to be a .xls file? CSV files are a LOT easier to write and Excel can read them directly.