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 

Workbook.Open(FileName) Error 800A03EC

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





PostPosted: Wed Jan 19, 2005 4:43 am    Post subject: Workbook.Open(FileName) Error 800A03EC Reply with quote



I'm actually doing this with an older version of C++ Builder (5) but this is
the only Borland board with about OLE automation.

The code in question is
excApp->Connect();
newBook = excApp->Workbooks->Open(fNameHolder);

When I run this on my computer (XP Home, Excel 2003) the document in
question opens fine.

When I run this on my customer's computer (Windows 2000 Server, Excel 2000)
the statement throws
"HRCHECK:
this->Open(params) Error: 800A03EC" blah blah blah

When I explicitly pass the "Format" parmeter on my computer as
TVariantInParam nullParam = "" (or 0, or whatever); I get this error.

I've got a very grumpy customer right now. Any ideas?

-Ken


Back to top
graham
Guest





PostPosted: Wed Jan 19, 2005 1:17 pm    Post subject: Re: Workbook.Open(FileName) Error 800A03EC Reply with quote




Hi Ken
I met this error working with charts in excel from delphi 6.

(search this forum for posts titled:-
Problems with an excel chart - solution )


The problem turned out to be caused by custom settings in the target excel application - in my case the default chart was set to a 3d one, which did not accept the same parameter list as a 2d chart.
Try explicitly setting the default properties within the excel application itself to those that you require, before the point where the error appears.
Hope this helps
Graham

"Ken" <macmidas (AT) surewest (DOT) net> wrote:
Quote:
I'm actually doing this with an older version of C++ Builder (5) but this is
the only Borland board with about OLE automation.

The code in question is
excApp->Connect();
newBook = excApp->Workbooks->Open(fNameHolder);

When I run this on my computer (XP Home, Excel 2003) the document in
question opens fine.

When I run this on my customer's computer (Windows 2000 Server, Excel 2000)
the statement throws
"HRCHECK:
this->Open(params) Error: 800A03EC" blah blah blah

When I explicitly pass the "Format" parmeter on my computer as
TVariantInParam nullParam = "" (or 0, or whatever); I get this error.

I've got a very grumpy customer right now. Any ideas?

-Ken




Back to top
Deborah Pate (TeamB)
Guest





PostPosted: Wed Jan 19, 2005 8:37 pm    Post subject: Re: Workbook.Open(FileName) Error 800A03EC Reply with quote



< I'm actually doing this with an older version of C++
Builder (5) but this is the only Borland board with about
OLE automation.
Quote:


The b.p.cppuilder.activex group handles automation issues.

< When I run this on my customer's computer (Windows 2000
Server, Excel 2000)
Quote:


Which Office version type library are you using?

--
Deborah Pate (TeamB) http://delphi-jedi.org

TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html



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.