Free Support Forum - aspose.com

Convert a Word document to an html file

Hello,

How do I convert a word document to an html file? I have the Aspose.Words software.

Thank you

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose products. Please try using the following code to achieve what you need:

// Open document.

Document doc = new Document("in.doc");

doc.Save("out.html", SaveFormat.Html);

Also, please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/loading-saving-and-converting.html

Best regards,