GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Sep-2005, 23:51
swati_npl swati_npl is offline
Awaiting Email Confirmation
 
Join Date: Sep 2005
Posts: 1
swati_npl is on a distinguished road

Reading MS Excel file through C++ code


I have my data in an excel file which has 2 columns and about250 rows. i want to read this file in C++ and want to store the data in a 2D array having 2 columns and 250 rows.Please solve the problem as soon as posssible as i am in a great need.mail me at swati_npl_ors[at]yahoo[dot]co[dot]in
Last edited by LuciWiz : 16-Sep-2005 at 03:43. Reason: Please don't feed the spam-bots with your email
  #2  
Old 16-Sep-2005, 04:39
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 961
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by swati_npl
I have my data in an excel file which has 2 columns and about250 rows. i want to read this file in C++ and want to store the data in a 2D array having 2 columns and 250 rows.Please solve the problem as soon as posssible as i am in a great need.mail me at swati_npl_ors[at]yahoo[dot]co[dot]in

Senior members may not reply to this thread if you:
  • used "Please help", "C problem" or something equally vague as the title for your thread.
  • included example code in your message and not use the syntax highlighting [c] tags.
  • did not describe the problem accurately or include the error message (if any).
The guidelines for posting can be found here.

We encourage you to post again once you've done that.
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 28-Feb-2008, 07:32
arestispartan's Avatar
arestispartan arestispartan is offline
New Member
 
Join Date: Feb 2008
Location: Durban, South Africa
Posts: 12
arestispartan will become famous soon enough

Re: Reading excel file through C++ code


Hi swati_npl

Do you still want a solution to your problem of reading an excel file in C++ (2005)?

Aresti
  #4  
Old 01-Mar-2008, 19:17
05gtp 05gtp is offline
Awaiting Email Confirmation
 
Join Date: Aug 2005
Location: Clinton Township (Detroit Area), MI
Posts: 13
05gtp will become famous soon enough

Re: Reading excel file through C++ code


Still need help with this one.

Investigate "Excel COM". my current favorite, I have not start using Visual Studio Tools for Office.
  #5  
Old 03-Mar-2008, 06:04
arestispartan's Avatar
arestispartan arestispartan is offline
New Member
 
Join Date: Feb 2008
Location: Durban, South Africa
Posts: 12
arestispartan will become famous soon enough

Re: Reading excel file through C++ code


Hi

At the moment I don't know how to use Excel Com to read and then write to an Excel file, I will investigate that if I can. To write to Excel I used System.Data.OleDb. basically, you access the Excel file as a database. As far as I know, the Excel file also has to look like a database table in each sheet you want to access. I have the code on another thread here, where you can look: (I am programming in C#, so I'm not sure of the difference here).

I can't find the thread right now. Do you want me to mail you the code? You'll have to give me your email address.



If I find the thread I'll edit this post with it.
  #6  
Old 03-Mar-2008, 06:12
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 774
admin will become famous soon enough

Re: Reading excel file through C++ code


It's here: Reading an Excel file in C#.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
 
 

Recent GIDBlogToyota - 2008 November Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 08:44
Reading and Writing to a text file raptorhawk C++ Forum 16 14-Apr-2005 14:09
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 11:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 12:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 10:15.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.