Hi Todd,
Thank you for your interest in Syncfusion products.
Appending html with list tag to a paragraph will create new paragraphs for those lists. So that we have to replace string
by all those paragraphs. For your reference we have modified your code
snippets. Please try this code and let us if this helps you.
Dim s As New WSection(document)
Dim p As WParagraph =
s.AddParagraph
document.XHTMLValidateOption = XHTMLValidationType.Transitional
p.AppendHTML(myHTMLstring)
Dim tbpHTML As TextBodyPart
tbpHTML = New TextBodyPart(document)
For index As
Integer = 0 To
s.Body.ChildEntities.Count - 1
tbpHTML.BodyItems.Add(s.Body.ChildEntities(0))
Next
document.Replace("~html~",
tbpHTML, True, True)
Please let us know if you have any questions.
Regards
Ramkumar
Thank you for your updated.
Regarding your question about processing other tags:
No need to process each tag individually, the code snippets
that I have provided in my last update will process all kinds of tags. For your
reference, please find the code snippets below.
Code snippets:
Dim s As
New WSection(document)
Dim p As
WParagraph = s.AddParagraph
document.XHTMLValidateOption = XHTMLValidationType.Transitional
p.AppendHTML(myHTMLstring)
Dim
tbpHTML As TextBodyPart
tbpHTML =
New TextBodyPart(document)
For index As Integer = 0 To
s.Body.ChildEntities.Count - 1
tbpHTML.BodyItems.Add(s.Body.ChildEntities(0))
Next
document.Replace("~html~", tbpHTML, True, True)
Please let us know if you have any questions.
Regards
Ramkumar