Article View: borland.public.cppbuilder.database.ado
Article #4059Pivot Table Component (Err: OLE component activation failed)
From: Sorokoletov Gregory
Date: Tue, 02 Apr 2002 18:34
Date: Tue, 02 Apr 2002 18:34
84 lines
2519 bytes
2519 bytes
Hi gurus!!! I wont to write client side application for MS OLAP Server. In this goal I install into C++ Builder palette MS Pivot Table from Microsoft Offoce XP Web component pack. ( I use "Import Type Library" menu) I got the "OWC10_OCX" files. Installing this components I receive some errors, then I changed OWC10_OCX files and install components successfully. Now I have the TPivotTable component. OK: In design mode TPivotTable component works fine, It connects to OLAP Server, gets cube name list and just execute MDX query!!! But when I build EXE file I receive the error: "OLE component activation failed" Question one: Please explain me what I do wrong???? PS I try to create TPivoteTable object manually: I wrote: TPivotTable *PivotTable1= new TPivotTable(Application); // it works ok PivotTable1->Parent= this; // Hire compiler generates error: [C++ Error] Unit1.cpp(22): E2034 Cannot convert 'TForm1 * const' to '_di_IDispatch' PivotTable1->Visible= true; OK, I renamed TPivotTable property "Parent" to "Parent_" whereupon C++ Builde compiles successfully. But when I stated the EXE file I again receive error massage: "OLE component activation failed". Error was generated here: PivotTable1->Parent= this; Question one: What is wrong???? How can I write working code???? Help please!!!!!!!!!!!!!!!!!!!!!!!!!! Thanks Sorokoletov Gregoey
Technical Details
Message-ID:
<3ca9f998_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!sfo2-feed1.news.algx.net!allegiance!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.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,b6bfd05d4cde9efd,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-04-02 10:36:23 PST From: "Sorokoletov Gregory" <gsorokoletov@sovintel.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: Pivot Table Component (Err: OLE component activation failed) Date: Tue, 2 Apr 2002 22:34:00 +0400 Lines: 89 Organization: Sovintel X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.44.130.15 Message-ID: <3ca9f998_1@dnews> X-Trace: dnews 1017772440 212.44.130.15 (2 Apr 2002 10:34:00 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!sfo2-feed1.news.algx.net!allegiance!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews