Click here to Skip to main content
15,905,229 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to convert word Document To HTML format using interop with C#?
please give answer as soon as possible.

Mahendra Kumar Das

There is no such "conversion" simply because there is no one-to-one correspondence between Word and HTML. You can do something, but the input should come in two parts: the document itself and some mapping model to map the two, a set of mapping rules or something like that.

Word itself provides some "Save as HTML" operation, but it was always criticized as highly bloated. I must admit that visually, in last versions of Word, the result imitates original document very closely and looks pretty neat, but past conversions were a disaster.

To work with Word, you can use MS Office Interop Word. Please see:[^],[^],[^].

Good luck,
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900