Free Support Forum - aspose.com

Hello world example?

I need a very simple ‘hello world’ example of a conversion from docx to html.


This message was posted using Page2Forum from Aspose.Words for .NET - Documentation

Hello

Thanks for your inquiry. Yes, of course, please see the following code:

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

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

Also, please follow the link to learn details about how Aspose.Words saves document in the HTML/XHTML and MHTML formats:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/save-in-the-html-format.html

Best regards,