note 90814 added to class.com
| From: | tsintra at humansoft dot pt | Date: | Mon, 11 May 2009 15:18:32 +0000 |
| Subject: | note 90814 added to class.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154454@lists.php.net to get a copy of this message | ||
After one week of trying to understand what was wrong with my PHP communication with MS Word, i
finally got it working...
It seems that if you're running IIS, the COM object are invoked with restricted privileges.
If you're having permission problems like not being able to opening or saving a document and
you're getting errors like:
- This command is not available because no document is open
or
- Command failed
try this (if you're running IIS):
- Execute "dcomcnfg"
- Open Component Services > Computers > My Computer > DCOM Config
- Search for Microsoft Office Word 97-2003 Document (it will be something like this translated to
your language, so take a while and search for it)
- Right-Click on it and open the properties
- Choose "Identity" tab
- Normally this is set to "the launching user". You have to change this to "the
interactive user" or a admin user of your choice.
- Apply these new settings and test your COM application. It should work fine now.
I hope I save lots and lots of hours of headaches to some of you :)
----
Server IP: 81.92.192.129
Probable Submitter: 62.28.121.203
----
Manual Page -- http://www.php.net/manual/en/class.com.php
Edit -- https://master.php.net/note/edit/90814
Del: integrated -- https://master.php.net/note/delete/90814/integrated
Del: useless -- https://master.php.net/note/delete/90814/useless
Del: bad code -- https://master.php.net/note/delete/90814/bad+code
Del: spam -- https://master.php.net/note/delete/90814/spam
Del: non-english -- https://master.php.net/note/delete/90814/non-english
Del: in docs -- https://master.php.net/note/delete/90814/in+docs
Del: other reasons-- https://master.php.net/note/delete/90814
Reject -- https://master.php.net/note/reject/90814
Search -- https://master.php.net/manage/user-notes.php