Problem with RichText

edited July 2004 in FastReport 2.xx VCL
How to load external file (rtf) or stream into report (i.e. Rich1)

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:34PM
    Hi Write an onbeforeprint event for the report component.
    ie
    procedure TForm1.frReport1BeforePrint(Memo: TStringList; View: TfrView);
    begin
    if View.Name = 'RxRich1' then
    TfrRxRichView(View).RichEdit.Lines.LoadFromFile('C:\D3Projects\fr245check\loadrtf\reports\new.rtf');

    the above sample uses rx rich edit just drop the rx if using fr's richedit
    you can also search the forum for richedit and find another method.
    regards ;)
  • edited 12:34PM
    Thank you
    It works. ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.