#38021 [Com]: Uncaught exception 'com_exception'
ID: 38021
Comment by: imyhchou at gmail dot com
Reported By: zyablik at insc dot ru
Status: No Feedback
Bug Type: COM related
Operating System: XP SP2 IIS onboard
PHP Version: 5.1.4
Assigned To: wharmby
New Comment:
This error message happens when trying to instantiate MS WORD on a
system with improper permissions.
You can refer to http://figured-it-out.com/figured-out.php?sid=24
to
solve it.
Previous Comments:
------------------------------------------------------------------------
[2007-06-19 13:35:39] klemen at breg dot si
I using this CVS snapshot but i got the same error !
------------------------------------------------------------------------
[2007-02-11 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-02-03 16:17:14] wharmby@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
By well known example I assume you mean something like the
following: http://www.pastebin.ca/338618.
I have tried this example against the latest level of PHP 5.2 and it
works fine. Can you please retry with the latest 5.2 snapshot and
re-open the defect with details of your actual php script if the problem
persists.
------------------------------------------------------------------------
[2006-07-06 14:58:36] zyablik at insc dot ru
Description:
------------
Fatal Exeption on new COM("Word.Application")
Reproduce code:
---------------
Very well known example for testing "word.Application" COM object.
my line 13 is:
$word = new COM("Word.Application");
... the same as expected
$word->Documents->Add();
Expected result:
----------------
Creation of new test word file.
Actual result:
--------------
Fatal error: Uncaught exception 'com_exception' with message
'<b>Source:</b> Microsoft Word<br/><b>Description:</b> Could not
open
macro storage.' in D:\dir\com.php:13 Stack trace: #0 D:\dir\com.php(13):
variant->Add() #1 {main} thrown in D:\dir\com.php on line 13
What does that means?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38021&edit=1
Thread (6 messages)