I have a problem with the htmlviewimporter.
I would like import a HTML File in the TRichViewEdit and i use the htmlviewimporter with the htmlviewer. The html includes pictures.
I use the following code:
Code: Select all
if OpenDialog1.Execute then begin
HTMLViewer1.Base := OpenDialog1.FileName;
HTMLViewer1.LoadFromFile(OpenDialog1.FileName);
RVHTMLViewImporter1.ImportHtmlViewer(RichViewEdit1);
NormalizeRichView(RichViewEdit1.RVData);
RichViewEdit1.Format;
end;
This is the image tag in the html-file:
<IMG alt="TS - Conditioned time signal" src="test.jpeg" width=640 height=390>
The problem is, I can't import the pictures in the richviewedit because I get a error. The importer use a wrong path for the image.
What can I do?