Forum Webscript.Ru
		Программирование => PHP => Тема начата: Dolce0109 от 04 Марта 2002, 06:29:09
		
			
			- 
				Вот, открывать WORD файлы я научился, но вот с COM объектами работать не приходилось, может кто расскажет как мне весь текст из файла прочитать?
 
 пока я могу делать вот что:
 
 
 #Instantiate the Word component.
 
 $word = new COM("word.application") or die("Unable to instantiate Word");
 $the_file = "E:\\local\\htdocs\\hello.doc";
 
 #Get and print its version
 
 print "Loaded Word, version {$word->Version}
 ";
 
 #Make it invisible in a window
 $word->Visible = 0;
 
 #Open a document
 $word->Application->Documents->Open($the_file);
 
 echo "so, we are here " . $word->Selection->StartOf();
 
 $word->Quit();
 ?>