Dear all,
In the attached ZIP file, there are two Word Document files:
document_habillage_tableau-lorem.doc
document_habillage_tableau-lorem-workaround.doc
They are respectively saved as HTML content in aspose_html
and aspose_workaround_html
. A third word_html
directory contains a conversion made by Microsoft Word.
The two first documents are converted in HTML format with this trivial piece of code:
Dim doc As Words.Document = New Words.Document(srcPath)
doc.UpdateFields()
doc.Save(destPath)
In document_habillage_tableau-lorem.doc
, the second table has its “Text wrapping” property set to “Around” (see screenshot in the attached ZIP). Since the table width covers the whole page, the text after naturally goes in a new line. However, this is not rendered the same way in the HTML conversion. The text begins next to the table instead after a newline (also the heading number “1.1” is displayed inside the table). Same thing for the conversion made by Microsoft Word.
As a workaround, our client had to set “Text wrapping” to “None” to get a correct rendering (document_habillage_tableau-lorem-workaround.doc
)
Since Aspose.Words in this case save this content in HTML the same way Word does, is it still viewed as an issue?
Best regards,
Monir
PS: version 19.8.0 of Aspose.Words is used.
tables_as_html.zip (76.2 KB)