Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Cannot save text in RichEdit.

edited June 2003 in End User
Hi,
I would like to know how can I save changes made in RichEdit component
without exiting from it?
The problem is that when I try to press "Save" button it offers to me to
save changes into FILE (*.rtf). although I need to post changes into
database. BUT when I exit from the window it actually asks me to save
changes and if I press yes then the changes ARE saved into database. How can
I be able to save changes into DB as well as into the file without exiting
from RichEdit component?

Thanks,
MB.

Comments

  • edited June 2003
    You can create a custom rich text editor. All forms in RB are replacable.
    See the ppRichEd.pas file for an example of creating a rich text editor
    form. The bottom of this unit has a registration call you can make. Copy
    this unit and rename the class name. Then change the file save operation
    code to not save to file. To save to database, simply add code to access the
    report template and save that to database with the current rtf stream that
    you have loaded into the editor into the rich text control in the report.
    Then register your new class and you should see it in the designer at
    runtime.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    Thanks, I will do it.

This discussion has been closed.