comp.lang.ada
 help / color / mirror / Atom feed
From: "Andrew" <andrew@carroll-tech.net>
To: <comp.lang.ada@ada-france.org>
Subject: excel files
Date: Wed, 6 Oct 2004 03:52:14 -0600
Date: 2004-10-06T03:52:14-06:00	[thread overview]
Message-ID: <mailman.208.1097055129.390.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: 20041005193515.6C38A4C409F@lovelace.ada-france.org

> ------------------------------
> Message: 6
> Date: Tue, 05 Oct 2004 21:00:28 +0200
> From: Alexandre Devaure <adevaure@free.fr>
> Subject: Re: excel files
> tmoran@acm.org wrote:
> >>Depending on what you have in your Excel file, but you can use it as
a DB and
> >>use ODBC to access data.
> >
> >   Can you access formulas and formatting via ODBC, or just values in
cells?
>
> What I want is just to read values in cells.
> ------------------------------

Then ODBC should work great!  I think formulas are returned as the
contents of the cell.  I speculate that formatting is stored in some
hidden property object of the sheet or even worksheet.  If you knew
which property object then most likely you could create a recordset of
the contents of the property object and navigate to alter a cell's
formatting.  I do know that named regions in a sheet can be accessed via
ODBC as a table where the name corresponds to the table name that is
specified in the SQL statement.

I wonder if there is a way to create a binding to the libraries in
Visual Basic.  In Visual Basic, and please excuse my "vocabulary" here,
you specify which libraries are associated with the project.  There is a
list and you put little check marks next to the ones you want.  Then you
can use the object browser to view what features that library adds.
Ahhhh, I can't remember all the menu's and menu labels and stuff, darn
it.  I think I have early onset "old timers" disease.

Anyway...
Those libraries are dll files (correct me if I am wrong).  Isn't there a
way to import those into an Ada specification?  If you could do that
then you could use the object browser in VB as your guide and write in
Ada!  This way, you could "import" the Excel libraries and use them with
the same "robustness" as VB does instead of ODBC.

I think someone mentioned something similar to importing dll files with
A#.  Now if I could just remember who that was...

Andrew Carroll
Carroll-Tech
720-273-6814
andrew@carroll-tech.net





       reply	other threads:[~2004-10-06  9:52 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20041005193515.6C38A4C409F@lovelace.ada-france.org>
2004-10-06  9:52 ` Andrew [this message]
2004-10-06 10:24   ` excel files stephane richard
2004-10-06 11:58     ` Chris Humphries
2004-10-06 16:27       ` Warren W. Gay VE3WWG
2004-10-06 17:17         ` Chris Humphries
     [not found] <20041006203015.B3B864C40D1@lovelace.ada-france.org>
2004-10-06 21:58 ` Andrew
     [not found] <20041006132018.833134C40CC@lovelace.ada-france.org>
2004-10-06 19:56 ` Andrew
     [not found] <20041005034017.9E75B4C4137@lovelace.ada-france.org>
2004-10-05  6:49 ` Andrew
2004-10-05 21:37   ` David Botton
2004-10-04 19:16 Alexandre Devaure
2004-10-04 19:42 ` stephane richard
2004-10-04 20:02   ` Chris Humphries
2004-10-05  0:29   ` Jeffrey Carter
2004-10-05  1:20   ` Stephen Leake
2004-10-04 20:42 ` Martin Dowie
2004-10-04 22:20   ` Jeff C r e e.m
2004-10-05  7:45   ` Georg Bauhaus
2004-10-05 12:32     ` Chris Humphries
2004-10-05 14:16     ` David Botton
2004-10-04 21:40 ` tmoran
2004-10-05  6:30   ` Pascal Obry
2004-10-05 17:31     ` tmoran
2004-10-05 19:00       ` Alexandre Devaure
2004-10-05 19:02       ` Pascal Obry
2004-10-05  0:55 ` David Botton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox