We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words for Java does not save HTML to DCOX

Tried converting html to doc using the following snippet which didn’t work. Attached both files for your reference. Expecting response.

com.aspose.words.Document doc = new Document(htmlfile);
doc.save(destFile, SaveFormat.DOCX);

[<a class=“attachment”* href="/uploads/discourse_instance3/37291">Archive 3.zip (52.9 KB)
(https://forum.aspose.com/uploads/discourse_instance3/37291) (52.9 KB)

A post was split to a new topic: Merge Sheets in Excel document


Please use the following code example to get the desired output.

Aspose.Words.LoadOptions options = new Aspose.Words.LoadOptions();
options.LoadFormat = LoadFormat.Html;
Document doc = new Document(MyDir + "MainReport.html", options);
doc.Save(MyDir + "20.4.docx");