Description


Appends the content of RTF (Rich Text Format) stream Stream to the document.


function LoadRTFFromStream (Stream: TStream): Boolean

 Parameter

 Description

 Stream

 The stream that contains the RTF document.



Example


   procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
   var
       RtfFile: TFileStream;
   begin
       RtfFile := TFileStream.Create('d:\document.rtf', fmOpenRead);
       try
           Form1.RichEdit1.LoadRTFFromStream(RtfFile);
       finally
           RtfFile.Free;
       end;
   end;