php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38021 Uncaught exception 'com_exception'
Submitted: 2006-07-06 14:58 UTC Modified: 2007-02-11 01:00 UTC
Votes:22
Avg. Score:3.8 ± 1.2
Reproduced:13 of 14 (92.9%)
Same Version:5 (38.5%)
Same OS:8 (61.5%)
From: zyablik at insc dot ru Assigned: wharmby (profile)
Status: No Feedback Package: COM related
PHP Version: 5.1.4 OS: XP SP2 IIS onboard
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 + 37 = ?
Subscribe to this entry?

 
 [2006-07-06 14:58 UTC] 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-03 16:17 UTC] 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. 
 [2007-02-11 01:00 UTC] 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-06-19 13:35 UTC] klemen at breg dot si
I using this CVS snapshot but i got the same error !
 [2009-12-24 05:12 UTC] imyhchou at gmail dot com
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.
 [2012-02-03 07:20 UTC] amreshsinghmca at gmail dot com
please tell me how can generate word file using php and mysql. this word file also include image.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC