bhagwat Posted June 17, 2008 Share Posted June 17, 2008 Hello My Objective is to, i want to retrieve doc file content value into FCK Editor text area. How Can i Do This Please Help Me. Please Help Me Link to comment https://forums.phpfreaks.com/topic/110542-how-can-i-fetch-doc-file-content-into-fck-editor-text-area/ Share on other sites More sharing options...
jesushax Posted June 17, 2008 Share Posted June 17, 2008 copy and paste? Link to comment https://forums.phpfreaks.com/topic/110542-how-can-i-fetch-doc-file-content-into-fck-editor-text-area/#findComment-567098 Share on other sites More sharing options...
bhagwat Posted June 17, 2008 Author Share Posted June 17, 2008 brother i want to fetch it through code. if i copy and paste then why i post the topic in forum Link to comment https://forums.phpfreaks.com/topic/110542-how-can-i-fetch-doc-file-content-into-fck-editor-text-area/#findComment-567104 Share on other sites More sharing options...
jesushax Posted June 17, 2008 Share Posted June 17, 2008 <?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); from here: http://www.developertutorials.com/blog/php/extracting-text-from-word-documents-via-php-and-com-81/ Link to comment https://forums.phpfreaks.com/topic/110542-how-can-i-fetch-doc-file-content-into-fck-editor-text-area/#findComment-567110 Share on other sites More sharing options...
bhagwat Posted June 17, 2008 Author Share Posted June 17, 2008 Thank you So Much For Reply. I get all text from this. but one problem is that all formatting means "text Background, Bold, underline, bullets not working" Please Help Me if any other solution. Thanks again Link to comment https://forums.phpfreaks.com/topic/110542-how-can-i-fetch-doc-file-content-into-fck-editor-text-area/#findComment-567128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.