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.

Thanks
Mahendra Kumar Das
Posted

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:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word%28v=office.14%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ff597928.aspx[^],
http://msdn.microsoft.com/en-us/library/ff601860.aspx[^].

Good luck,
—SA
 
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