Article View: borland.public.cppbuilder.database.ado
Article #3976Exporting Paradox Database To Excel 2000
From: John Borchers
Date: Tue, 30 Apr 2002 14:59
Date: Tue, 30 Apr 2002 14:59
31 lines
2228 bytes
2228 bytes
Hi all,
I can't find a better newsgroup to ask this question in. I'm trying to use
TAccessApplication with Builder 5 to open a paradox table (TTable) and then
export it to MS Excel format. This is my first time doing servers and I'm
well lost. All MS documentation is in VisualBasic which doesn't help much.
So far this is what I have...
//try to connect to access
AccessApplication1->Connect();
AnsiString Name("C:\\atest\\db1.mdb");
wchar_t* NameWide=new wchar_t[Name.WideCharBufSize()+1];
Name.WideChar(&NameWide[0],Name.WideCharBufSize());
AccessApplication1->OpenCurrentDatabase(NameWide,false);
DatabasePtr dbs=AccessApplication1->CurrentDb();
AccessApplication1->DoCmd->OpenTable("db1",acViewNormal,acReadOnly);
AccessApplication1->CloseCurrentDatabase();
delete[] NameWide;
AccessApplication1->Disconnect();
Is MSAccess supposed to launch? or am I running commands that are backround
operated? Does anyone have a code snippet they could please share. I haven't
found any examples of using Access for this kind of thing. I'm interested in
how to retrieve any errors that these functions might be causing but I don't
see a usable error property.
Thanks,
John M. Borchers
SHI-APD Cryogenics
www.apdcryogenics.com
Technical Details
Message-ID:
<3cceb032$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,621e6e3fb814f561,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-04-30 08:00:59 PST From: "John Borchers" <jborchers@apdcryogenics.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Exporting Paradox Database To Excel 2000 Date: Tue, 30 Apr 2002 10:59:53 -0400 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 63.116.149.114 Message-ID: <3cceb032$1_1@dnews> X-Trace: dnews 1020178482 63.116.149.114 (30 Apr 2002 07:54:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews