I am loading Html into a RichTextBoxAdv control.
The Html text consiste of about 100 paragraphs.
After loading (wether by RichTextBlockAdv.LoadAsync with type = Html or by implementing the HtmlText property as suggested by yourselves and assigning the html to it what I get in the rich text box document is 1 section, 1 paragraph and a number of SpanExt equivalent to the original number of paragraphs in the loaded html.
This makes it impossible to visualize the text correctly, or to apply styles to the individual paragraphs.
Am I doing something wrong? Have I not understood how RichTextBlockAdv works?
Please advise
I attach one of the HTML files that I am trying to load into the SfRicvhTextBoxAdv control.
The file consists of one section containing about 370 paragraphs. It gets converted by the Html import to a Document made up of one Section containing one Paragraph made up of the same number of SpanAdv blocks as the original number of paragraphs.
I have tried using LoadAsync, I have tried extending the SfRichTextBoxAdv control by the addition of HtmlText as recommended by yourselves, I have even tried extracting all the Html paragraphs from the document and adding them one at a time to the HtmlText.
The result is always the same, one section, one paragraph and lots of SpanAdv.
Styles can only be applied to documents, paragraphs and characters, and the fact of having only one paragraph for the loaded Html means that the resulting loaded document is a contonuous stream of text without any separation between the paragraps, making the assignment of styles and the editing into a proper Word document (and its reading) very lengthy, complex and difficult.
This is not what was expected.
Attachment: testHtml_388dd8c5.7z
|
|
|
|