note 38063 deleted from ref.com by cmb
| From: | cmb@php.net | Date: | Sun, 30 Jun 2019 07:42:45 +0000 |
| Subject: | note 38063 deleted from ref.com by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211410@lists.php.net to get a copy of this message | ||
Note Submitter: david at wu-man dot com
----
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() :
<?php
$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.