How to load a rtf file into TfrxRichView component

edited 5:48PM in FastReport 3.0
How can I load a rtf file thru pascalscript to a TfrxRichView component.

I've try LoadFromFile, doesn't exist.
LoadFromStream('file.rtf'), give error.

Please help me on this one.

Paulo Vaz

Comments

  • edited 5:48PM
    Try Rich1.RichEdit.Lines.LoadFromFile(...)
  • edited 5:48PM
    It works well. Thank you.

    And do you know how to detect if a file exist before opening ?

    Many thanks,
    Paulo Vaz

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.