Article View: borland.public.cppbuilder.database.ado
Article #1858Re: ADO and Excel
From: Viatcheslav V. Vassiliev
Date: Sat, 24 Jan 2004 12:32
Date: Sat, 24 Jan 2004 12:32
33 lines
2294 bytes
2294 bytes
Create ADO connection with connection string: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Temp\MyFile.xls;Extended properties=Excel 8.0 Excel 5.0 for MS Excel 5/95 speadsheet Create TADODataSet, TADOTable or TADOQuery and connect to speadsheet. Table name is [DiapasonName] for named diapason, [$Sheet1] for sheet, [Sheet1$B5:C10] for cell range. Work with TADODataSet (TADOTable, TADOQuery) as usual. If you do not want SQL even if it is hidden from you use server-side cursor (client-side cursor will create and execute SQL commands internally). //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Lee" <golee@charter.net> �������/�������� � �������� ���������: news:4012423b$1@newsgroups.borland.com... > Does any one know if I can post information into an excel spread sheet with > out using SQL, but using straight ADO connection. I am using BCB5 Ent and > if it can be done, could I get a code sample? Thanks > > Thanks > >
Technical Details
Message-ID:
<401265f9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4012423b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,84d0342e6b56816d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-24 04:39:14 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <4012423b$1@newsgroups.borland.com> Subject: Re: ADO and Excel Date: Sat, 24 Jan 2004 15:32:57 +0300 Lines: 35 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: <401265f9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074947577 213.234.218.42 (24 Jan 2004 04:32:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail