Hello, can sameone give me a tip, hw to fill a RTF field in WPForm from my application. The Value for the Field is a File. This file I read at Runtime into the field.
Your fields need to have a name, otherwise it will not work. Also makes sure the unit WPFRtf5 is included.
This event handler will be called
Code
procedure TForm1.FDUpdateData(Sender: TObject; Graphic: TWPFGGraphic;
const ObjName: String; var Done: Boolean);
var d : TStringStream;
begin
if Graphic is TWPFGGraphicText then
begin
d := TStringStream.Create(WPRichText1.AsString);
TWPFGGraphicText (Graphic).LoadFromStream(d);
d.Free;
end;
end;