note 38063 added to ref.com
| From: | david at wu-man dot com | Date: | Sat, 06 Dec 2003 19:42:28 +0000 |
| Subject: | note 38063 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61490@lists.php.net to get a copy of this message | ||
After many hours of trial and error, I have finally discovered how to kill the notorious Word
process. I hope my solution works for everyone else.
#1) $word->Quit() is perfectly fine. Don't bother feeding in as parameter those empty
variants.
#2) Do NOT have com_load_typelib('Word.Application') anywhere in your script.
#3) Make sure you have the following line before $word->Quit() :
$word->Documents[1]->Close(false);
#4) Add the following lines after $word->Quit() :
$word->Release();
$word = null;
unset($word);
If my solution indeed helped you with your problem, please email me and let me know. I would like
to see if the problem was indeed solved.
----
Manual Page -- http://www.php.net/manual/en/ref.com.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38063
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38063&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38063&report=yes
Search -- http://master.php.net/manage/user-notes.php