Click to See Complete Forum and Search --> : new COM(): Access is denied.


jadair
09-17-2002, 04:30 PM
I get an Access is denied error when trying to instantiate Excel. The actual error reads - Unable to obtain IDispatch interface for CLSID {00020820-0000-...}: Access is denied after the following code:

$this->ex = new COM("Excel.Sheet") or Die ("Did not instantiate Excel");

Apache then crashes and claims to post into the error log. Although I can not find any such entry into the any log. Also, Apache keeps running and I never have to restart it. Maybe this is how it's suppose to work; I don't know.

I'm running Apache 1.3.26 & PHP/4.2.2.

The error message only comes up when I'm using the ZDE debugger as a Debug Warning.

Any help would be appreciated.

dotwebbie
09-17-2002, 06:37 PM
Not being very familiar with COM, I'm not exactly sure what to look for. Have you followed the COM articles here?

kinglouie
09-18-2002, 08:06 PM
What's with

$this->ex = new COM("Excel.Application") or Die ("Did not instantiate Excel"); ?

I think there's no available object "Excel.Sheet".
Best regards,

King Louie

jadair
09-18-2002, 08:23 PM
I have followed the COM articles and have looked thru all the comments. I actually posted a comment their myself with some more details. I think the problem is with PHP 4.2.2 itself.