Hi,
Thanks for your message.
Please refer to the following code to modify it to ensure that you can obtain a Word document containing images.
- Code: Select all
//Open an html file.
Document document1 = new Document();
document1.LoadFromFile("test.html", FileFormat.Html, XHTMLValidationType.None);
//Save it to a Word document.
document1.SaveToFile("HtmlFileToWord.docx", FileFormat.Docx);
If there are any questions after the test, please provide the following information for us to investigate further
1. Your input files as well as your final saved file,which you can upload them here or provide to us by email (
[email protected])
2. Your system information (E.g. Win10, 64 bit) and region setting (E.g. China, Chinese).
Best Regards,
Herman
E-iceblue support team