473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Manipulating excel spreadsheets in C++

Hi,

I have C++ code to write data to a .csv file thereby resulting in an
excel spreadsheet.

I was just wondering whether it wud be possible for us to further
manipulate the csv file like for example filling a cell with a
particular color etc...with C++ code?

Thanks fr your suggestions and help,

Jul 19 '07 #1
4 5720
spirit wrote:
I have C++ code to write data to a .csv file thereby resulting in an
excel spreadsheet.
It only results in an excel spreadsheet if you load it into MS Excel.
I was just wondering whether it wud be possible for us to further
manipulate the csv file like for example filling a cell with a
particular color etc...with C++ code?
AFAIK Excel and csv, no. But do find a newsgroup about Excel
programming (see 'microsoft.public.*' hierarchy) and ask there.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 19 '07 #2
spirit wrote:
Hi,

I have C++ code to write data to a .csv file thereby resulting in an
excel spreadsheet.

I was just wondering whether it wud be possible for us to further
manipulate the csv file like for example filling a cell with a
particular color etc...with C++ code?
C++ has no special features for doing that.

A csv file is just text normally. If you can figure out a spreadsheet
feature that can be captured in a csv file to do it, then you can
certainly write it to the file. I'd start with an Excel newsgroup or
forum.


Brian
Jul 19 '07 #3
On Jul 19, 8:39 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
spirit wrote:
I have C++ code to write data to a .csv file thereby resulting in an
excel spreadsheet.
It only results in an excel spreadsheet if you load it into MS Excel.
I was just wondering whether it wud be possible for us to further
manipulate the csv file like for example filling a cell with a
particular color etc...with C++ code?
AFAIK Excel and csv, no. But do find a newsgroup about Excel
programming (see 'microsoft.public.*' hierarchy) and ask there.
There's a site, http://www.wotsit.org/, which has descriptions
of the format of just about every file imaginable, so if he
really has to, he can skip the CSV, and write an Excel file
directly. That should allow anything that Excel can save from
one session to the next. It's doubtlessly a lot more work than
writing a CSV file, however, and a lot more difficult to debug;
I wouldn't recommend it unless absolutely necessary.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Jul 20 '07 #4
On Jul 20, 3:08 am, James Kanze <james.ka...@gmail.comwrote:
On Jul 19, 8:39 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
spirit wrote:
I have C++ code to write data to a .csv file thereby resulting in an
excel spreadsheet.
It only results in an excel spreadsheet if you load it into MS Excel.
I was just wondering whether it wud be possible for us to further
manipulate the csv file like for example filling a cell with a
particular color etc...with C++ code?
AFAIK Excel and csv, no. But do find a newsgroup about Excel
programming (see 'microsoft.public.*' hierarchy) and ask there.

There's a site,http://www.wotsit.org/, which has descriptions
of the format of just about every file imaginable, so if he
really has to, he can skip the CSV, and write an Excel file
directly. That should allow anything that Excel can save from
one session to the next. It's doubtlessly a lot more work than
writing a CSV file, however, and a lot more difficult to debug;
I wouldn't recommend it unless absolutely necessary.

--
James Kanze (GABI Software) email:james.ka...@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
thnks a lot guys for your suggestions...:D
James...Yea Ill go thru it and see whether I really need to do tht..

Aug 3 '07 #5

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

Similar topics

1
by: smonczka | last post by:
I have a DTS package that needs to refresh data in 3 separate Excel spreadsheets on a daily basis. The problem is that unless I manually delete the previous day's data, it appends rather than...
3
by: Elliot | last post by:
The program loops through a dataset and creates several spreadsheets based on a change in a particular column. With each new spreadsheet I launch a new instance of excel. After about 100...
0
by: Rich Wallace | last post by:
Hello all, Looking for suggestions and tips if possible. I have an application running on a file server that utilizes the FileSystemWatcher to trap when any Excel files are saved by a user. I...
2
by: Jim S | last post by:
To my surprise and chagrin, newer versions of Access have disabled the functionality that lets users change the data in linked tables that point to a range in an Excel workbook. This is "because of...
19
by: wreckingcru | last post by:
I'm trying to output a SQL query that is constructed thru my VB.net GUI into an excel file. Here is the code I'm using: 'Sqlstmt is the SQL query statement 'Conn is the SQL Connection object...
1
by: Mitch | last post by:
I am using Access to create an Excel spreadsheets with graphs related to rows on the sheet1 to the graph on sheet2. I am using the same data but different subsets of the data to make different...
3
by: TC | last post by:
My project has a reference to the Excel 9.0 Object Library. My understanding is that, by using a reference to 9.0, I make my application compatible with Excel 2000, 2002, and 2003. If I use a...
0
by: DrewYK | last post by:
I have the project that may never end in front of me. I am creating a routine that will take SpreadSheets from Excel and bring them into Access. I am not using any "DoCmd"s because the goal...
1
by: thadson | last post by:
Hi, I'm trying to import specific cells from MS Excel 2000 spreadsheets to MS Access 2000 tables then move the spreadsheets to a different directory. I'm very new to this and I'm having trouble...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...

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.