note 74400 deleted from ref.classobj by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 22:00:37 +0000 |
| Subject: | note 74400 deleted from ref.classobj by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133325@lists.php.net to get a copy of this message | ||
Note Submitter: rajvin120 at rediffmail dot com
----
I had tried this code but when I create the word object it takes so much time and throws a
exception.
com_load_typelib('Word.Application');
$word_object = new COM("word.application") or die("Cannot create Word object");
$word_object->Documents->Open($file_path, false, true);
$word_object->Selection->WholeStory();
$word_data = $word_object->Selection->Text;
$word_object->ActiveDocument->Close(True);
$word_object->Quit(True);