Here at Infoland we are still trying to use the InsertHTML function to paste HTML into word documents. Our customers came up with the fantastic (feel free to notice the sarcasme) idea to create numbered lists in HTML containing a table. This is rendered correctly in both IE and Firefox, but when using aspose.words to insert the html, the number in front of (in our example) number 3 disappears. Code example:
Dim objBuilder As New Aspose.Words.DocumentBuilder()
objBuilder.InsertHtml("<html><head></head><body><ol><li>this is number 1</li><li>this is number 2</li><li><table><tr><td>this is number 3</td></tr></table>this is still number 3</li><li>this is number 4</li></ol></body></html>")
objBuilder.Document.Save("c:\temp\worddoc.doc")
Like mentioned before, the browsers renders this correctly, but aspose.words creates the attached word document.
Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,
Is there any news about this issue? Or was i supposed to post this in the priority support section for this issue to get priority? (the same goes for issues 20142 and 20166)
We are planning to release an update for our software in 3 weeks, and we would really like these issues to be resolved in this release.
Thanks for your inquiry. Unfortunately, all these issues are still unresolved. They have the highest priority in our defect database. We will let you know once they are resolved. My apologizes for inconvenience.
Best regards,
Hello!
Thank you for your patience.
We have addressed this issue. In the next public build it will be fixed but some restrictions will remain: indent of the whole table won’t be preserved. Also please note that a table directly inside a list item is not very practical if you plan to convert documents from HTML to DOC, DOCX etc. In Microsoft Word formats tables are treated much differently and cannot get 100% exact layout with what you see in browsers.
Regards,