Hi + tx for reading.
WPTools 6.08, Delphi 2006
I have a form, dropped a TDBWPRichText on it. The user can call the DefaultEditor for advanced etiting. I use this code:
Code
var editor : TWPToolsEditor;
begin
editor := TWPToolsEditor.Create(nil);
editor.WPRichText1.AsString := frmRezeptList.dsRezept.DataSet.FieldByName(
'ANLEITUNG').AsString;
editor.ShowModal;
frmRezeptList.dsRezept.DataSet.FieldByName(
'ANLEITUNG').AsString:=editor.WPRichText1.AsANSIString('RTF');
editor.Close;
editor.Free;
editor:=Nil;
end;
Alles anzeigen
However, the TDBWPRichText shows the text with all rtf-codes. Calling the editor again, displays the text formatted correctly.
The TDBWPRichText is set to wplayFullLayout.
What am I missing?
tx Bernd