🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1671

Re: help with reading and writing MS Excell Files

#1671
From: Viatcheslav V. Vassiliev
Date: Wed, 24 Mar 2004 13:38
47 lines
2228 bytes
If you need to read/write only data (not diagrams etc.) you may do this the
same way as with MS Access. Connection string is

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Temp\Test.xls;Extended
properties=Excel 8.0

Select query is

From sheet:

Select * from [$Sheet1]

From named diapason:

Select * from [DiapasonName]

From range:

Select * from [Sheet1$B5:C10]


//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"lmlong" <lmlong@sisna.com> �������/�������� � �������� ���������:
news:40617ee3$1@newsgroups.borland.com...
> I have C++ Builder 6 I am needing a little coaching on which of the MS
> office controls to put on the forms and what the properties should say to
be
> able to read and write to MS Excel files.  I have already figured out how
to
> read and write to Acess and Paradox files.  That can be done from the BDE
> interface.  I just need a little nudge in Excel.
>
> Thanks in advance for your help
>
>
> Sincerely
>
> llonghur@sbcglobal.net
>
>
Technical Details
Message-ID: <40618f46@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40617ee3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,c4b41bdac7f4228a
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-03-24 05:40:08 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40617ee3$1@newsgroups.borland.com>
Subject: Re: help with reading and writing MS Excell Files
Date: Wed, 24 Mar 2004 16:38:13 +0300
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40618f46@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080135494 213.234.218.42 (24 Mar 2004 05:38:14 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail