 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ken Guest
|
Posted: Wed Jan 19, 2005 4:43 am Post subject: Workbook.Open(FileName) Error 800A03EC |
|
|
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
|
Posted: Wed Jan 19, 2005 1:17 pm Post subject: Re: Workbook.Open(FileName) Error 800A03EC |
|
|
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
|
Posted: Wed Jan 19, 2005 8:37 pm Post subject: Re: Workbook.Open(FileName) Error 800A03EC |
|
|
<
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 b.p.cppuilder.activex group handles automation issues.
<
When I run this on my customer's computer (Windows 2000
Server, Excel 2000)
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 |
|
 |
|
|
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
|
|