Forums Register Login

Convert Word Documents as HTML

+Pie Number of slices to send: Send
Hi,

My application has an option of uploading word documents and pdf documents, where in these documents are stored in a central repository. The users can dowload the documents and view the documents. For instance for viewing a word document we are setting the response contenttype as application/msword. I need to provide a way where in like google to show the document as HTML. Can you please help me in rendering the Word document as HTML Page.

Thanks in advance.

Srini

[ December 22, 2004: Message edited by: Srinivasan Radhakrishnan ]
[ December 22, 2004: Message edited by: Srinivasan Radhakrishnan ]
+Pie Number of slices to send: Send
Here's one way, but it includes doing some MS stuff outside of Java.

Word has its own object model which through Com or OLE, you can start up the WOrd application, open the document and the save as html, just as if you were doing it manually through MS Word. Then all you need to do is get that file and display it.

This might require a Java to Com bridge, which a company like JIntegra has such a product. .Net might also have a way to connect to Java too.

Now I thought that in most browsers, word documents can be displayed. Why would you want to change it to HTML?

Mark
+Pie Number of slices to send: Send
I don't have personal experience with this product, but you might check out:

HTML Transit
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 653 times.
Similar Threads
unfamiliar with eMac
FileInputs
Passed SCJP1.4 with 86%
Problem with JNI
uploading a word doc/excel files
Java Api for converting Word document to PDF?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:55:59.