Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default question about Excel file writing and reading

Could someone tell me how to write and read excel file efficiently in c++
wn32 sdk program? I using win2000 + VC++ 6.0, open and operate then close
excel file frequently

An example will be highly appreciated.

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default question about Excel file writing and reading

Your request is too general.

If you want to create and write to an Excel file on a cell/range by
cell/range basis with formatting and want to do so without EXCEL, have a look
at ExcelWriter.

If you want to create an Excel file and dump into it data from an SQL query,
you can do so using the JET provider and do not need EXCEL.

If you have Excel and want to be able to create workbooks/files and populate
them on a cell/range by cell/range basic, you need to look as Excel
automation: there are plenty of examples on the internet but they illustrate
the principles using VB mostly rather than C++.

"Albert Ge" wrote:

Could someone tell me how to write and read excel file efficiently in c++
wn32 sdk program? I using win2000 + VC++ 6.0, open and operate then close
excel file frequently

An example will be highly appreciated.

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default question about Excel file writing and reading

Yes, maybe my request before is very general.
I try to write/read file by excel automation, but the operation will be very
frequent.
I only find examples on how to do in MFC program, no case for Win32 SDK.

Could someone give me the SDK example?
I use win2000 + VC++ 6.0 + Excel 2000

Thanks,
Albert
"AA2e72E" wrote in message
...
Your request is too general.

If you want to create and write to an Excel file on a cell/range by
cell/range basis with formatting and want to do so without EXCEL, have a

look
at ExcelWriter.

If you want to create an Excel file and dump into it data from an SQL

query,
you can do so using the JET provider and do not need EXCEL.

If you have Excel and want to be able to create workbooks/files and

populate
them on a cell/range by cell/range basic, you need to look as Excel
automation: there are plenty of examples on the internet but they

illustrate
the principles using VB mostly rather than C++.

"Albert Ge" wrote:

Could someone tell me how to write and read excel file efficiently in

c++
wn32 sdk program? I using win2000 + VC++ 6.0, open and operate then

close
excel file frequently

An example will be highly appreciated.

Thanks,





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need sample for reading value from and writing value to cell E53 from outside Excel Tony Bansten Excel Discussion (Misc queries) 1 June 17th 08 07:03 AM
reading from text file to excel file dgoel Excel Programming 0 April 18th 05 06:49 PM
Reading data from an excel sheet and writing to another Rain Excel Programming 1 January 19th 05 09:25 AM
Fast reading/writing of CSV files Chris Jakeman Excel Programming 2 August 6th 04 10:29 AM
Reading and writing from/into several worksheets Chris Excel Programming 3 December 4th 03 08:24 PM


All times are GMT +1. The time now is 03:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"