Button on webpage to save/export HTML to Word doc

I saw in the documentation or website, that there is an example of using a button on a webpage to save the html of the page to a word doc. However, i can’t seem to locate it. sorry to bother…

Hi Mike,

Thanks for your inquiry. Yes, you can convert Html to Doc/Docx using Aspose.Words. Please use following code example to achieve your requirements and let us know if you have any more queries.

// Load the html into Aspose.Word document
Document doc = new Document(MyDir + "in.html");
// Save the document to Docx
doc.Save(MyDir + "Out.docx", SaveFormat.Docx);