TppRichText
Hi
Using Report Builder 5.5x on Win2k
I am trying to use the LoadFromFile method of TppRichText at run time, but
keep getting an access violation.
eg: ppRTBody.LoadFromFile('H:\Data\CZ\Data\sysReports\roy1.rtf');
Does anyone have any examples on how to achieve the successful loading of
RTF at run time please?
Thanks in advance
Roy
Using Report Builder 5.5x on Win2k
I am trying to use the LoadFromFile method of TppRichText at run time, but
keep getting an access violation.
eg: ppRTBody.LoadFromFile('H:\Data\CZ\Data\sysReports\roy1.rtf');
Does anyone have any examples on how to achieve the successful loading of
RTF at run time please?
Thanks in advance
Roy
This discussion has been closed.
Comments
looking at my code, I have a memory table and a TppdbRichText, then
set the field as follows:
try
sl := TStringList.Create;
try
sl.LoadFromFile('FileName.rtf');
FieldByName('StandardText').AsString := sl.Text;
finally
sl.Free;
end;
except
end;
HTH, Martin Clarke.
On Tue, 17 Jul 2001 15:20:11 -0500, "Roy Jones"