note 20862 added to ref.com
| From: | admin at purplerain dot org | Date: | Fri, 19 Apr 2002 08:34:50 +0000 |
| Subject: | note 20862 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29566@lists.php.net to get a copy of this message | ||
an easy way to convert your file from .doc to .html
// starting word
$word = new COM("word.application") or die("Unable to instanciate Word");
// if you want see thw World interface the value must be '1' else '0'
$word->Visible = 1;
//doc file location
$word->Documents->Open("E:\\first.doc");
//html file location '8' mean HTML format
$word->Documents[1]->SaveAs("E:\\test_doc.html",8);
//closing word
$word->Quit();
//free the object from the memory
$word->Release();
$word = null;
--
http://www.php.net/manual/en/ref.com.php
http://master.php.net/manage/user-notes.php?action=edit+20862
http://master.php.net/manage/user-notes.php?action=delete+20862
http://master.php.net/manage/user-notes.php?action=reject+20862