HTML --> MS Word

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

HTML --> MS Word

Post 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.
ongray
Forum Newbie
Posts: 14
Joined: Wed Sep 01, 2004 1:08 am

Post by ongray »

did you try the COM Object for Windows only?
more detail : http://php.bieffe.org/manual/en/ref.com.php
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

I asked about converting html to word with php. Where did all this office stuff come from? :lol:
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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.
Post Reply