472,958 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

connection to excel


hi..

I need to open an excel file and read
particular rows column data from particular worksheet and write to
another excel file.
this is to be done with "C" program..Right now I have no software
installed on my system
what are the software required to do this and what are the steps to
follow to achieve this..

thanks in advance
ss

--
Posted via http://dbforums.com
Nov 13 '05 #1
7 5638
soubhagya wrote:

hi..

I need to open an excel file and read
particular rows column data from particular worksheet and write to
another excel file.
this is to be done with "C" program..Right now I have no software
installed on my system
what are the software required to do this and what are the steps to
follow to achieve this..

thanks in advance
ss

--
Posted via http://dbforums.com

That's completely off-topic for this newsgroup....
But to give you some advice, you'll certainly need a C compiler on Windows,
probably Visual C++.

But from your question, I guess you don't have much experience developing in
C (apologies if that's not correct), so I don't think you'd really want to
do something like that in C, because it will require not only knowledge in
C or C++ but also knowledge of technologies like Windows OLE automation or
similar. Why does it need to be C? Visual Basic for Applications would
probably do the job much easier...

Cheers
Stef
Nov 13 '05 #2

Originally posted by Stefan Wiesendanger
soubhagya wrote:

hi..

I need to open an excel file and read
particular rows column data from particular worksheet and write

to
another excel file.
this is to be done with "C" program..Right now I have no

software
installed on my system
what are the software required to do this and what are the steps

to
follow to achieve this..

thanks in advance
ss

--
Posted via

http://dbforums.com/http://dbforums.com
That's completely off-topic for this newsgroup....
But to give you some advice, you'll certainly need a C compiler on
Windows,
probably Visual C++.

But from your question, I guess you don't have much experience
developing in
C (apologies if that's not correct), so I don't think you'd
really want to
do something like that in C, because it will require not only
knowledge in
C or C++ but also knowledge of technologies like Windows OLE
automation or
similar. Why does it need to be C? Visual Basic for Applications would
probably do the job much easier...

Cheers
Stef


I have enough knowlege of C and C++ .. since our all modules code is
already written in C and these modules should read data and write data
to Excel file ,it would be better if u could direct me how I am supposed
to do the so called Windows OLE automation etc.,
I would be really glad if u could give me detailed steps as to how we
can connect to excel and read and write data..
Actually to brief u about my project .. we have main interface developed
in VB. It has four individual modules ..Each module is set of
calculations and these are developed in C . now these modules should
read the data from excel file and write to excel file..
So can u help me in how I could proceed.. and if u could provide
some sample code where data is read and written to excel file it
would be great..
thanks in advance'

--
Posted via http://dbforums.com
Nov 13 '05 #3
soubhagya wrote:

I have enough knowlege of C and C++ .. since our all modules code is
already written in C and these modules should read data and write data
to Excel file ,it would be better if u could direct me how I am supposed
to do the so called Windows OLE automation etc.,

Try searching at msdn.microsoft.com for these terms (OLE, Excel etc.)
There's lots of documentation with sample code there...
Nov 13 '05 #4


thanks for information ..u can send the code samples to
so*********@rediffmail.com

--
Posted via http://dbforums.com
Nov 13 '05 #5
On Fri, 01 Aug 2003 09:52:32 -0400, Slartibartfast wrote:
web site - a search for BIFF will turn up several references. If you
care to post a real email address I can send some sample C++ code which
reads Excel files. I also have some freely accessible document files
which explain the BIFF data format and the Excel records therein,
although more up-to-date information is available on MSDN.


Hi Slartibartfast,

I tried to send this too you without success. Please reply via e-mail.

--8<--

I read your post on comp.lang.c regarding the BIFF format. Can you also
send me the documentation you described? I have info regarding the details
of structured storage and a little about .DOC on my website:

http://www.ioplex.com/~miallen

If I ever get to digging around in this stuff again I might add another
blurb about Excel. For now I'm just collecting data....

Also you said "most microsoft applications use biff"? From reading the
"Microsoft Word Binary File Format" document I didn't gleen anything about
biff. Is there something about the superstructure of .DOC streams that are
related to BIFF?

Mike
Nov 13 '05 #6

"Michael B Allen" <mb*****@ioplex.com> wrote in message

I read your post on comp.lang.c regarding the BIFF format. Can you
also send me the documentation you described? I have info regarding
the details of structured storage and a little about .DOC on my website:

See what happens when you start answering OT queries on the ng? As far as
ANSI C is concerned BIFF is just another Microsoft binary file format. You
can of course discuss BIFF intircacies at length, but not here.

Nov 13 '05 #7
"Malcolm" <ma*****@55bank.freeserve.co.uk> wrote in message news:bg**********@newsg4.svr.pol.co.uk...

See what happens when you start answering OT queries on the ng? As far as
ANSI C is concerned BIFF is just another Microsoft binary file format. You
can of course discuss BIFF intircacies at length, but not here.


And what exactly has happened?? The point of topicality is to preserve bandwidth, and I chose to give somebody the assistance they
requested using no more than it takes to tell them to go elsewhere. You will notice I asked for an email address in order to
continue the conversation away from this NG.

You have wasted just as much precious bandwidth with your pointless (and, BTW, factually incorrect) response, and a lot more is
wasted daily by people (usually regulars) scoring points off each other, or posting refusals to answer questions for one reason or
another, or reposting spam in order to make some kind of riposte.

So don't lecture me. At least my posting was useful to somebody.

--
#include <stdio.h>
char*f="#include <stdio.h>char*f=%c%s%c;main(){printf(f,34,f,34,10) ;}%c";
main(){printf(f,34,f,34,10);}
Nov 13 '05 #8

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

Similar topics

6
by: Andrew | last post by:
Hi, How can I make a connection to an Excel file, and I can select the specific fields? For example in sheet1: A B C 1 20 change good 2 short return ...
11
by: Frank Xia | last post by:
When I try to build a oedb data connection, I got an error message saying "Invalid path or you have to connect to the server the database is resided". I can see dataset through Data - Preview...
7
by: aacool | last post by:
Hi, I've been trying to open an Excel connection through OLEDB with the code below: string ConnectString =@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + fileName.Text +...
1
by: PAM | last post by:
Hello I'm a newbie trying to open a connection to an Excel file in a deployed ASP .NET app and get the error Dim MyCommand As New OleDbCommand(mySelectQuery, MyConnection MyConnection.Open(
1
by: funcSter | last post by:
I want to retrieve data from an Excel file like how I would with a database. I understand that I would have to use OLE DB. Somehow I think I cannot get the connection string right, as the bit of...
2
by: ncht | last post by:
i am facing a database connectiion problem that i have writen code with connect to the database using ADODB , and i am sure that the connection is made an execution of query can be done succefully...
0
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
2
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
1
by: SeeMe | last post by:
Hi, I using Microsoft Visual Studio C# 2003, Microsoft Office Excel 2003 and using IIS server. I added Microsoft Excel 11.0 Object Library refrence. 1. Software not allow me to write this code:...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.