By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,244 Members | 1,772 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,244 IT Pros & Developers. It's quick & easy.

MS Word to HTML

P: n/a
Hi Everyone! First post. I'm from Argentina, but actually living in
Germany for in a practica. I'm looking for a code to convert Word to
HTML. Thanks!!

Mar 29 '06 #1
Share this Question
Share on Google+
14 Replies


P: n/a
Misael said the following on 29/03/2006 12:12:
Hi Everyone! First post. I'm from Argentina, but actually living in
Germany for in a practica. I'm looking for a code to convert Word to
HTML. Thanks!!


Word already does it. Save as --> Save as Type, select *.html.

However, don't do this, because it will come out like shit.

--
Oli
Mar 29 '06 #2

P: n/a
I know that function, but i want to do it in the server. The classes i
find all uses word or i need to install something extra, that's not
good.

Mar 29 '06 #3

P: n/a
Misael wrote:
I know that function, but i want to do it in the server. The classes i
find all uses word or i need to install something extra, that's not
good.


I don't think you'll find anything which doesn't require Word or some other
extra. Converting from a Word document to HTML can be quite complicated.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 29 '06 #4

P: n/a
On Wed, 29 Mar 2006 03:12:27 -0800, Misael wrote:
Hi Everyone! First post. I'm from Argentina, but actually living in
Germany for in a practica. I'm looking for a code to convert Word to HTML.
Thanks!!


There are a couple of command line utilities for Linux to do this.
Personally I use wvWare (wvHTML for your purposes, although I tend to use
wvText for what I require).

Another utility is Antiword, although that doesn't export HTML only
XML/Docbook - so you'd need to convert that afterwards.

Cheers,


--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

Mar 29 '06 #5

P: n/a
On Wed, 29 Mar 2006 11:55:46 +0000, Andy Jeffries wrote:
On Wed, 29 Mar 2006 03:12:27 -0800, Misael wrote:
Hi Everyone! First post. I'm from Argentina, but actually living in
Germany for in a practica. I'm looking for a code to convert Word to
HTML. Thanks!!


There are a couple of command line utilities for Linux to do this.
Personally I use wvWare (wvHTML for your purposes, although I tend to use
wvText for what I require).

Another utility is Antiword, although that doesn't export HTML only
XML/Docbook - so you'd need to convert that afterwards.


I just noticed in another post you said without installing anything extra
- in that case your SOL!

However, compiling wvware and keeping the binary within your
webroot shouldn't be hard... Just make sure Apache doesn't have write
permissions to it.

Cheers,
Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

Mar 29 '06 #6

P: n/a
I would like to use wvWare, but the server that i use is in windows. : (

Mar 29 '06 #7

P: n/a
On Wed, 29 Mar 2006 03:58:48 -0800, Misael wrote:
I would like to use wvWare, but the server that i use is in windows. : (


Wv for Windows
http://gnuwin32.sourceforge.net/packages/wv.htm

Cheers,
Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

Mar 29 '06 #8

P: n/a
Thanks, but i still have to install something, and that doesn't help
me...i'm not he owner of the server.

Mar 29 '06 #9

P: n/a
"Misael" <mi**********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
Thanks, but i still have to install something, and that doesn't help
me...i'm not he owner of the server.

Since that's the case, don't you think it would be time to re-think the
situation? Like why use doc's anyway? Who is the supplier of these word
documents and why do they need to be converted to html? Could the supplier
use another format instead of word? Since your options converting it at
server side are pretty limited, would it be possible to do the conversion in
the client side? What's the whole scenario here?

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Mar 29 '06 #10

P: n/a
I want to create a database with works of my University, as it is
impossible to create and transform hundred of documents, i want to do
it with php automatic.

Mar 29 '06 #11

P: n/a
Misael said the following on 29/03/2006 14:01:
I want to create a database with works of my University, as it is
impossible to create and transform hundred of documents,
Actually, it's not. You can write a VBA macro in Word to process a
folder full of Word documents, and re-save them as HTML.
i want to do
it with php automatic.

Either way, why does this require converting everything to HTML? Why
can't your database keep things in their original Word format?
--
Oli
Mar 29 '06 #12

P: n/a
Good.

You can use COM with php.
But it needs MS office should be installed in server.

using com, do the following,

1. open a word document
2. copy the content to clipboard
3. open a new word doc
4. insert <html> <pre>
5. paste from clip board
6. insert </pre></html>
7. save as the document as filename.html

Do the same for every documents.

This will work if the docs contains only text.

If complicated tables, links, diagrams, i dont know.

Wishes.

T.Shrinivasan.

Mar 29 '06 #13

P: n/a
Misael wrote:
I want to create a database with works of my University, as it is
impossible to create and transform hundred of documents, i want to do
it with php automatic.


You choose the wrong tool.

Word has excellent VB scripting. But you will need Word and local access
to those documents. That can be achieved via PHP webservice on the said
server, which will have 3 functions - something to the extent of:

EnumerateDocuments()
DownloadWordDocument()
UploadHtmlDocument()

and client on your desktop, which will fetch those documents, convert
them and uploads new version back.

If you do not have Word, or your desktop is Linux, then Open Office 2.0
has excellent Word support and somewhat documented API accessible
directly to Basic / Java / JavaScript / Python and indirectly via COM or
..NET technologies.

Roman
Mar 29 '06 #14

P: n/a
The fact is that the entire process must be automatic, all my friends
should be able to upload and see what they did in the page. I want to
do something as google.

Mar 29 '06 #15

This discussion thread is closed

Replies have been disabled for this discussion.