How to convert any doc file to html and then this html to doc file without loosing any images or formatting?

How to convert any doc file to html and then this html to doc file without loosing any images or formatting?

@parveenc Please also note, Aspose.Words is designed to work with MS Word documents. HTML documents and MS Word documents object models are quite different and it is not always possible to provide 100% fidelity after conversion one format to another.
However in general conversion of HTML to MS Word document and vice versa can be done using the following simple code:

Document doc = new Document(@"C:\Temp\in.html");
doc.Save(@"C:\Temp\out.docx");

By default Aspose.Words writes roundtrip information into HTML document when MS Word document is converted to HTML, but as I have mentioned it is not always possible to guaranty 100% fidelity after roundtrip.