Hi,
I posted this question a while back - Upgrading from v4 to v6: Equivalents.
I managed to migrate most of it all over, however, I am now stumped with a section which I had working in v4 but can't seem to get it to work in v6.
Here is the V4 code (Delphi 2010):
AEditor := TWPRichText.Create(nil);
AEditor.Loaded;
AEditor.WriteObjectMode := wobRTF;
AEditor.Clear;
AEditor.HTMLFilePath := 'PathToImageDir';
AEditor.HtmlCreateImages := wpciCreateImages;
AEditor.TextSaveFormat := 'HTML';
S := TStringStream.Create(RTFValue); // this can contain RTF with embedded images
try
AEditor.LoadFromStream(S);
AEditor.Size := 0;
AEditor.SaveToStream(S, TextSaveFormat);
Result := S.DataString;
finally
S.Free;
end try
Alles anzeigen
The editor would correctly export the images to HTML as img elements. However, I can't quite seem to get this to work in v6.
Could someone help me translate the above v4 code into V6 code.
Thanks