02-06-2009, 01:55 AM
|
#8 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
That works SketchMedia, with a little bit of re-working. I used the following code and it output a txt document for me, with a folder as well with 2 other files in:
php Code:
try { $szOpenDocument = 'C:/wamp/www/word/word-open.doc'; $szSaveDocument = 'C:/wamp/www/word/word-save.txt';
$pWordCOM = new COM("word.application"); $pWordCOM->Documents->Open($szOpenDocument); $pWordCOM->ActiveDocument->SaveAs($szSaveDocument, 8); $pWordCOM->ActiveDocument->Close(false); $pWordCOM->Quit(); unset($pWordCOM); } catch(Exception $e) { die($e->getMessage()); }
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|