Page 1 of 1
Load HTML from String
Posted: Sat Mar 22, 2014 7:50 pm
by Testomatico
Hello,
could someone tell me how to fill the RichViewEdit with a string containing html-code?
Thank you!
Best regards
Testo
Posted: Tue Mar 25, 2014 7:34 am
by Sergey Tkachenko
You need to use additional components: TrvHtmlImporter or (better) TrvHtmlViewImporter.
With TrvHtmlImporter, call
With TrvHtmViewlImporter, call
Code: Select all
HTMLViewer1.LoadFromString(s);
RVHTMLViewImporter1.ImportHtmlViewer(HTMLViewer1, RichViewEdit1);
In the both cases, it is recommended to call NormalizeRichView after loading (RVNormalize.pas from RichViewActions), then call Format.