Page 1 of 1

HTML --> MS Word

Posted: Sun May 15, 2005 11:26 am
by Pyrite
Is there a way to convert an HTML file that basically just has text marked up with bold, strong, italic, font sizes, to a MS Word file with php?

To explain more, I have users creating text documents with HTMLArea and they are stored in MySQL as HTML. And I want to make it available to export it to a document form that they can view/edit in MS Word.

Posted: Sun May 15, 2005 8:21 pm
by ongray
did you try the COM Object for Windows only?
more detail : http://php.bieffe.org/manual/en/ref.com.php

Posted: Mon May 16, 2005 12:55 am
by anjanesh
Somehow I dont find COM for Windows in full force - OpenOffice should release some of their own linux based compatibility - or if its already there then php should include it - more and more people are asking MS Office related questions - checked up in many forums.

Posted: Mon May 16, 2005 1:25 am
by Pyrite
I asked about converting html to word with php. Where did all this office stuff come from? :lol:

Posted: Mon May 16, 2005 1:44 am
by anjanesh
If you copy-paste and html file to MS Word it gets converted - I guess theres a COM method to convert if the html data is in clipboard or some other format.