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%

Writing data to Excel file

This is a discussion on Writing data to Excel file within the C++ Programming forums, part of the General Programming Boards category; Hi there! I got a problem... again. I'd like to write to an Excel file, but I only know how ...

  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,701
    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,701
    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-30-2005, 12:24 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21