I'm getting the exception "Unknown picture file extension (.gif)" when loading some Html content into TRichView using rvHtmlImporter.
How can I fix this?
Petter
Unknown picture file extension (.gif)
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Loading in memo:
Importing:
Code: Select all
Memo1.Lines.DefaultEncoding := TEncoding.UTF8;
Memo1.Lines.LoadFromFile(OpenDialog1.FileName);
Code: Select all
RvHtmlImporter1.BasePath := ExtractFilePath(OpenDialog1.FileName);
RvHtmlImporter1.Encoding := rvhtmleUTF8;
RvHtmlImporter1.LoadHtml(UTF8Encode(Memo1.Lines.Text) );