gish Posted June 4, 2009 Share Posted June 4, 2009 Is there a way to view word.doc in the browser using php. I don't want to modify it just view Link to comment https://forums.phpfreaks.com/topic/160860-solved-php-word-document/ Share on other sites More sharing options...
BobcatM Posted June 4, 2009 Share Posted June 4, 2009 <?php $word = new COM("word.application") or die ("Could not initialise MS Word object."); $word->Documents->Open(realpath("Sample.doc")); // Extract content. $content = (string) $word->ActiveDocument->Content; echo $content; $word->ActiveDocument->Close(false); $word->Quit(); $word = null; unset($word); Read this: http://www.developertutorials.com/blog/php/extracting-text-from-word-documents-via-php-and-com-81/ Link to comment https://forums.phpfreaks.com/topic/160860-solved-php-word-document/#findComment-848958 Share on other sites More sharing options...
gish Posted June 4, 2009 Author Share Posted June 4, 2009 thanks that is what i was looking for Link to comment https://forums.phpfreaks.com/topic/160860-solved-php-word-document/#findComment-848974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.