Cannot save text in RichEdit.
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.
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.
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com