The code for loading from file is very simple:
Code: Select all
if OpenDialog1.Execute then begin
HTMLViewer1.LoadFromFile(OpenDialog1.FileName);
RVHTMLViewImporter1.ImportHtmlViewer(HTMLViewer1, RichViewEdit1,
ExtractFilePath(OpenDialog1.FileName));
NormalizeRichView(RichViewEdit1.RVData);
RichViewEdit1.Format;
end;
The last parameter defines the base path for images and links. Probably, pictures were not loaded because it was not specified.
Note that the importer can automatically import only local images. If they are in the Internet (http-links), you need to import them yourself. You can do it in TRichView.OnImportPicture event.
If you use the importer in RichViewActions, and also activate support for Indy or CleverComponents, they can download images from http automatically.