How to edit TfrxRichView at runtime?

Anu de DeusAnu de Deus Hampshire, UK
edited June 2009 in FastReport 4.0
How can I allow the user to edit the contents of a TfrxRichView at runtime, during preview?
It's identical to the Interactive demo, but instead of a TfrxMemoView, it's for a TfrxRichView, with a RichText editor.

I even tried using TfrxRichEditorForm in my code (not the script), but I didn't get far as I get an error saying it can't find the DesgnButtons resources when I try to display it, so this didn't go very far:

procedure TForm1.Button2Click(Sender: TObject);
var
lfrxRichEditorForm: TfrxRichEditorForm;
begin
lfrxRichEditorForm := TfrxRichEditorForm.Create(self);
lfrxRichEditorForm.showmodal; << raises exception can't find the DesgnButtons resources
lfrxRichEditorForm.free;
end;

Also, it would be nice to know if it's possible to have similar functionality (edit/select at runtime) for a TFrxPictureView.

Additionally, what's the purpose of the TfrxRichObject?
It doesn't have any relevant property, and there is no reference to it in any manual or demo.
Even in the Main Demo, where there is a TfrxRichObject component on the form, it doesn't seem to do anything at all, I deleted it and didn't notice anything different.
What does it do?


I'm using FR 4.7.37 Standard VCL Components with D7.
Any ideas?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:05AM
    include designer in your app.
    from preview screen select edit select the tfrxrichview object right click select edit.
  • Anu de DeusAnu de Deus Hampshire, UK
    edited 3:05AM
    Thanks, that works.
    I added the following text to my original message, but I probably did it after you did your post, so I'm retyping it here,
    I was hoping you could clarify me this doubt:

    Additionally, what's the purpose of the TfrxRichObject?
    It doesn't have any relevant property, and there is no reference to it in any manual or demo.
    Even in the Main Demo, where there is a TfrxRichObject component on the form, it doesn't seem to do anything at all, I deleted it and didn't notice anything different.
    What does it do?
  • gordkgordk St.Catherines On. Canada.
    edited 3:05AM
    you need it to be able to work with and load rtf files
    and the main demo uses it for the rtf memo in the add in objects richtext report.

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.