1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to create an excel file using c code

Discussion in 'C' started by Anil_c, May 16, 2011.

  1. Anil_c

    Anil_c New Member

    Joined:
    May 16, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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.
     

Share This Page