954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

convert microsoft word to html

hi
please do tell me how to convert a microsoft word to html document.
In my appln the user will browse the microsoft word document,when a registered user tries to view the application loaded by the users of the website...it should display in html format....

kings
Junior Poster
107 posts since Nov 2007
Reputation Points: 3
Solved Threads: 2
 

In word do:
File -> Save as.. -> Type name and select webpage (*.htm,*.html) in the extension menu.

This is the only way to convert .doc to .html. Microsoft is very protective about there fileformats.
(well you could get a morgage and buy the microsoft SDK..)

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 

I strongly advise you to NOT use Word as a tool to create web pages. The Microsoft HTML conversion utility generates horrible code.

TopDogger
Junior Poster in Training
87 posts since Aug 2005
Reputation Points: 15
Solved Threads: 5
 
I strongly advise you to NOT use Word as a tool to create web pages. The Microsoft HTML conversion utility generates horrible code.

yea!

fatihpiristine
Posting Whiz in Training
283 posts since Sep 2007
Reputation Points: 6
Solved Threads: 19
 

hi,
in my application the user will upload a word document...but when the admin open the page it should get displayed in html format.i want the conversion to automatic....................

kings
Junior Poster
107 posts since Nov 2007
Reputation Points: 3
Solved Threads: 2
 

Kings,

I asked a similar question in this forum before I saw your post. I've been doing some additional research since I posted and found a PHP script that is suppose to convert word docs to HTML automatically with the help of free program called "wvWare".

The script is located here: http://instruform.com/wordconv.phps

wvWare is located here: http://wvware.sourceforge.net/

Now I don't have any idea if these will work, but will be looking into them further for my own purposes. I hope this helps.

Good luck!

Yproc

Yproc
Newbie Poster
4 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

Me too facing the same problem if any one finds solution then let me inform.The problem is about writing whole php code to convert a MS Word document to HTML format which i am using to upload resume.

srana99
Newbie Poster
1 post since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

I've tried to use ConvertDoc to convert word and pdf resumes to html code. Unfortunately, it doesn't get invoked from PHP. The shell takes the command fine, my php safe mode is off, and I have all permission to the System user on the executable. My code is below; I don't see any problem with it.

<?php
      $command='convertdoc /S resume_sd.doc /T resume_new.html /M2 /C2 /F9';
      echo $command;
      echo exec($command);
?>

Is there a remedy for this?

atichtch
Newbie Poster
2 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This sounds like a particularly horrible thing to try and achieve. You probably need to use COM. I bet the various versions of Word will also throw a spanner in the works. If such a script exists, I reckon it'll be a commercial thing.

As for the wvware - it's C++ I think.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

It looks like this Zend facility has the ability to convert .doc to .pdf. That way, you could display it as a PDF:

http://www.phplivedocx.org/2009/02/06/convert-doc-to-pdf-in-php/

chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
 

Thanks, Chris, but I wanted to store HTML code in a database

atichtch
Newbie Poster
2 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You