how to create an excel file using c code

Anil_c's Avatar, Join Date: May 2011
Newbie Member

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.

xpi0t0s's Avatar, Join Date: Aug 2004
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.