BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excel Automation - failed OleCheck call

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Kim Doran
Guest





PostPosted: Wed Jan 28, 2004 10:13 am    Post subject: Excel Automation - failed OleCheck call Reply with quote



Hi,
I'm trying to make a call from Excel to my Delphi program. When the call
arrives in my code from the VBA macro I make a call to get a handle to the
running excel application. The first part of this call is to
OleCheck(AResult) which throws an EOleSysError exception - 'The object
exporter specified was not found' . This culminates in VB message in excel -
'Run time error '-2147418113 (8000ffff)'. Does anyone know what causes this
failure in the OleCheck call??? All suggestions welcome.


var
AResult : HRESULT;
begin
...
...
OleCheck(AResult); //fails here
OleCheck(Unknown.QueryInterface(_Application, XLApp));
...
...


Thanks
-Kim



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.