CODE
var
RichView: TfrxRichView;
Stream: TMemoryStream;
Str: string;
begin
RichView := TfrxRichView(frxReport2.FindObject('Rich1'));
if RichView = nil then
Exit;
Stream := TMemoryStream.Create;
try
Stream.LoadFromFile('my.rtf');
SetLength(Str, Stream.Size);
Stream.Read(Str[1], Stream.Size);
RichView.RichEdit.Text := Str;
finally // wrap up
Stream.Free;
end; // try/finally
if frxReport2.PrepareReport then
frxReport2.ShowPreparedReport;
end;
RichView: TfrxRichView;
Stream: TMemoryStream;
Str: string;
begin
RichView := TfrxRichView(frxReport2.FindObject('Rich1'));
if RichView = nil then
Exit;
Stream := TMemoryStream.Create;
try
Stream.LoadFromFile('my.rtf');
SetLength(Str, Stream.Size);
Stream.Read(Str[1], Stream.Size);
RichView.RichEdit.Text := Str;
finally // wrap up
Stream.Free;
end; // try/finally
if frxReport2.PrepareReport then
frxReport2.ShowPreparedReport;
end;
It works just as it is supposed to....but, the file I want to load has images. They don't show up in the report. Do I need to set something?
Also, where the heck can I download the help doc's for version 3 ????????
Thanks all,
bruce
