Solved

Creating EXCEL in C

Posted on 1999-01-07
3
194 Views
Last Modified: 2010-04-15
I'm charged with coming up with a fast running program in C (which I prefer) or C++ that will extract data and dynamically build an EXCEL spread sheet.  I'm pretty good at C but have ZERO experience with EXCEL.

Can anyone point me in the right direction? DDE or something.  Sample code or links to samples would be greatly APPRECIATED! Anything ...

-Thank you
0
Comment
Question by:robj
  • 2
3 Comments
 

Accepted Solution

by:
jdrissel earned 100 total points
ID: 1255594
Write your program to create a comma delimited output file.
Then write a template spreadsheet with a macro to import the comma delimited data.
You would probably have to figure out what format a formula is exported in to know how to
write your output.  I would suggest that you write the kinds of formulas you will need into a
test spread sheet, export it and take a look.  Good luck!
0
 

Author Comment

by:robj
ID: 1255595
Thanks .. just about what I thought .. however ... does it assume the user will open the flat delimtted file.  How can I launch (i.e. what parms or is there a sample)EXCEL to automatically pull in and build the spreadsheet so the .XLS is fully built by the time the use fetches the file?
0
 

Expert Comment

by:jdrissel
ID: 1255596
That part of the application would be best done with Visual Basic.  I really don't know how to do it, but I do know that kind of automation is frequently done in VB.  Good Luck
kd5dac
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now