Vebut Posted November 16, 2009 Share Posted November 16, 2009 Hi, I'm working with COM to read word documents on my windows server. Everything is working except for the formating. Is there a way to keep the formating so that I can parse it? <?php public function open ($document) { if (file_exists($document)) { $this->handle = new COM('word.application'); $this->handle->Visible = 1; $this->handle->Documents->Open($document); $content = (string) $this->handle->ActiveDocument->Content; var_dump($content); } return false; } ?> Thanks, Daniel Link to comment https://forums.phpfreaks.com/topic/181715-reading-word-documents/ Share on other sites More sharing options...
Vebut Posted November 16, 2009 Author Share Posted November 16, 2009 Bump... Link to comment https://forums.phpfreaks.com/topic/181715-reading-word-documents/#findComment-958639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.