473,503 Members | 3,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading MS Excel File from C++ Program.

Hello,

I want to read MS Excel(2000)file contents from my C++ program. How it
can be done. Is there any component as we have in VB(MS Excel 9.0)
Can Any body help me in this matter.

Mukesh...
Jul 19 '05 #1
3 14206
Mukesh Gupta wrote:
Hello,

I want to read MS Excel(2000)file contents from my C++ program. How it
can be done. Is there any component as we have in VB(MS Excel 9.0)
Can Any body help me in this matter.


This is a C++ language only newsgroup. You'd best ask this in a MS specific
newsgroup, microsoft.public.*

--
Unforgiven

"Not only do I not know the answer
I don't even know what the question is"
My world - Metallica

Jul 19 '05 #2


Mukesh Gupta wrote:

Hello,

I want to read MS Excel(2000)file contents from my C++ program. How it
can be done. Is there any component as we have in VB(MS Excel 9.0)
Can Any body help me in this matter.

No, there is not. However, if you go to http://www.wotsit.org you'll
find some interesting information on excel files. In particular, this
may interest you, http://chicago.sourceforge.net/

Brian Rodenborn
Jul 19 '05 #3
mu****@yahoo.com (Mukesh Gupta) wrote in message news:<e7**************************@posting.google. com>...
Hello,

I want to read MS Excel(2000)file contents from my C++ program. How it
can be done. Is there any component as we have in VB(MS Excel 9.0)
Can Any body help me in this matter.

Mukesh...


Write it in Excel as a CSV file. This is a simple text-based format
which can be read by std::ifstream. Each line of text is a row,
each ';'-separated string a field from that row.

Formatting etcetera will be lost, of course.

HTH,
--
Michiel Salters
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2127
by: David Alliet | last post by:
Hello, I'm having a bit of a problem with ASP and Excel. A client has developed his own program, which calculates alot of financial stuff, in excel. I'm doing his websites and he has requested...
3
3933
by: Sobhan | last post by:
Hi all, I am writing a program in C++ in which I need to read a data file and export to the excel.The Data in the file in CSV format. Values in the .txt file are as follows: "a","b","c"...
1
4667
by: mail2atulmehta | last post by:
Hi, I do not know if this is right place for this, but i need some help. I have a text file, whose values are seprated by a delimiter. I want to open this file in excel, ( not import it) . I have...
1
2017
by: Turner, GS \(Geoff\) | last post by:
> -----Original Message----- > From: siliconwafer > Posted At: 19 August 2005 15:20 > Posted To: c > Conversation: reading an excel file in C? > Subject: reading an excel file in C? > > >...
5
8925
by: Scott M. Lyon | last post by:
I've just discovered a bug in some code I wrote a little while ago, and I need you guys' help to fix it. My program imports data from a standard Excel Spreadsheet (just with specific column...
13
13205
by: nuti | last post by:
Hi all, I am fairly new to VB.I am trying to figure out as how to write a script so that i can read the data from an excel sheet to Access. can u guys please help me out? cheers, nuti
9
22475
by: dba123 | last post by:
I need some help and direction on what classes and an example or two (article) on how to read an Excel Worksheet and insert one column into a database table column. I am using .NET 2.0 only. What...
3
8008
by: Brad | last post by:
I'm having a problem reading data from an Excel file into a dataset. Can anybody give me an idea of what's happening? I've included the problematic source and the error message to the end of this...
4
4769
by: preetinair033 | last post by:
Hi All, I have written a program to write the data into excel file (for eg: file.xls). This writes the data into the active sheet, ie, the sheet1. However I wish to write and read data from an...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.