View Poll Results: Do you often write to Excel files?

Voters
7. You may not vote on this poll
  • This is a basic operation for me.

    1 14.29%
  • Sometimes I've got to.

    2 28.57%
  • Did it once or twice.

    0 0%
  • No, I never had to.

    4 57.14%

Thread: Writing data to Excel file

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    105

    Writing data to Excel file

    Hi there!

    I got a problem... again.
    I'd like to write to an Excel file, but I only know how to write to a file without specific type. Do any of you know about a ready-made component (just like the on I used at serial communications)?
    Or is there an another way to make an excel file easier than just writing to a blank textfile?

    Thanks
    Han

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Look up the CSV file format here.

    gg

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    105
    This format is quite complicated, so I changed my needs. I'll do the excel stuff in a macro in excel. But an another program came into view.

    My question now is:
    How can I open MS Excel from my program, with a parameter (file name)?

    Thanx again
    Han

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    system("C:\\workbook.xls");

    gg
    Last edited by Codeplug; 04-05-2003 at 08:39 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 10:47 AM
  2. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  3. Please Help Reading Data From A File
    By NickHolmes in forum C Programming
    Replies: 5
    Last Post: 05-29-2005, 11:24 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM