Hi,
Thanks for your inquiry.
Please note our Spire.Doc follows the the rules of MS Word. I open the HTML you mentioned in MS Word, below is the result showed in it.
openWithMSWord.png
Then with following code, I got same result Word file.
- Code: Select all
Document document = new Document();
string HTML = File.ReadAllText(FilePath + "19423input.html");
Section section0 = document.AddSection();
Paragraph paragraph = section0.AddParagraph();
//Append your html string
paragraph.AppendHTML(HTML);
document.SaveToFile("19432result.docx", FileFormat.Docx);
I didn't notice the issue you mentioned. Attached are my files for reference.
If I misunderstand, please share following information for further investigation:
1. The input Word file(if any)
2. The complete code which could reproduce your issue directly
3. The result Word you got
4. The expected Word file
Sincerely,
Betsy
E-iceblue support team
Login to view the files attached to this post.