Hello,
could someone tell me how to fill the RichViewEdit with a string containing html-code?
Thank you!
Best regards
Testo
Load HTML from String
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
You need to use additional components: TrvHtmlImporter or (better) TrvHtmlViewImporter.
With TrvHtmlImporter, call
With TrvHtmViewlImporter, call
In the both cases, it is recommended to call NormalizeRichView after loading (RVNormalize.pas from RichViewActions), then call Format.
With TrvHtmlImporter, call
Code: Select all
RvHtmlImporter1.LoadHtml(s);
Code: Select all
HTMLViewer1.LoadFromString(s);
RVHTMLViewImporter1.ImportHtmlViewer(HTMLViewer1, RichViewEdit1);