Group:  Microsoft Word ยป microsoft.public.word.conversions
Thread: Convert Word to Correct HTML

Geek News

Convert Word to Correct HTML
Saurabh Nandu 6/19/2007 12:14:00 PM
Hi,

I am building a Content Management System that allows users to upload Word
2007 documents to be published. On the backend we convert the Word 2007
document to HTML with Stylesheets and store it.

I am using the MS Word 2007 API and calling doing a Save AS HTML to extract
HTML.

The problem that I am facing is that things like Lists are not being
converted to OL/UL tags in HTML generated. Only P tags are generated with
styles.

How I can generate correct HTML tags?

I was reading in the articles on MSDN that they have a publish to Blog
feature where the claim to generate correct HTML (I have not tried it yet)
but if Word 2007 can generate valid HTML with CSS for the blogging feature,
why does it not do the same when it's API's are used? Any help ..direction
will be helpful.

I have looked at couple of 3rd Libraries - they too do not convert HTML
correctly.

PS: I have tried searching this NG using the web interface but it did not
provide any results, so I am asking this question again.

Regards,
Saurabh

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net