Article View: borland.public.cppbuilder.database.ado
Article #2659Re: TAccessApplication open report
From: OneEye
Date: Thu, 08 May 2003 11:13
Date: Thu, 08 May 2003 11:13
44 lines
2040 bytes
2040 bytes
answering my own question: the OpenReport method requires a tagVARIANT parameter. use the BCB TVariant type. grtz, OneEye "OneEye" <m.kollau@home.nl> wrote in message news:3eb7ee75@newsgroups.borland.com... > Hi, > > another TAccessApplication question. > > I want to open and show a report in Access. > I can open the database, but when I want to open a report nothing happens. > any suggestions? > > code: > -------------------------------------------------------------------------- -- > ---- > Access = new TAccessApplication(Main); // Main is my main form > Access->ConnectKind=ckRunningOrNew; > Access->set_Visible(true); > > AnsiString path = "G:\\projects\\Huurmanager\\cleandb\\huur.mdb"; > > Access->OpenCurrentDatabase(WideString(path),false); > > tagVARIANT tv ; > tv.vt=VT_I1; > tv.pcVal = "Huurder_overzicht"; > Access->DoCmd->OpenReport(tv, acViewDesign, EmptyParam, EmptyParam); > -------------------------------------------------------------------------- -- > ---- > > thanks in advance for any comments. > > grtz, > Maycel > >
Technical Details
Message-ID:
<3eba3bd8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eb7ee75@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,a589988f0716dc79 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-05-08 04:17:39 PST From: "OneEye" <m.kollau@home.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <3eb7ee75@newsgroups.borland.com> Subject: Re: TAccessApplication open report Date: Thu, 8 May 2003 13:13:25 +0200 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.204.154.8 Message-ID: <3eba3bd8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052392408 212.204.154.8 (8 May 2003 04:13:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail