How to write and read from formula one spread sheet using Borland C++ Builder?

Posted on 2005-03-14
Medium Priority
Last Modified: 2008-01-09
I want to put a formula one spread sheet in my program, and send data to cells from a var, and read from cells.  The example that comes with it seems to be for delphi. I'm using C++ Builder 5.  If there are other addins I can use, for which you know how to this please feel free to post as well, with a link to the addin.

----------------------------------------------  The example --------------------------------------------------------------
F1Book1.Col = 5
The following example shows the code required to read an Excel worksheet from disk using the Read method:
F1Book1.Read = "c:\excel\examples\amortize.xls"
The following example uses the Row, Col, Number, Formula, and Text properties to enter data in a worksheet. Numbers, 1 and 2, are entered in A1 and A2. A formula, SIN(A1) + COS(A2), is entered in A3. A text string is entered in B4.
F1Book1.Row = 1
F1Book1.Col = 1
F1Book1.Number = 1
F1Book1.Row = 2
F1Book1.Number = 2
F1Book1.Row = 3
F1Book1.Formula = "sin(A1) + cos(A2)"
F1Book1.Row = 4
F1Book1.Col = 2
F1Book1.Text = "The End!"
Question by:wdc2222
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 23

Expert Comment

ID: 13541301
I found this :


not sure if that helps you out any :)

Other then that take a look on www.pscode.com  :)

Author Comment

ID: 13541776
It was quite simple

   F1Book1->Col = 1;
   F1Book1->Row = 1;
   F1Book1->Number = 300;

stumbled on it when I typed row in help index, then there were exemples for stringgrids.
LVL 23

Expert Comment

ID: 13557965
Thats fine, he solved it himself so :) Need I say more :)

Accepted Solution

OzzMod earned 0 total points
ID: 13584835
Closed, 500 points refunded.
Community Support Moderator (Graveyard shift)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

770 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