Page 1 of 1

Save to database directly as html

Posted: Mon Sep 19, 2005 1:04 pm
by Marco Azevedo
Dear friends,

I would like to save the text from TRichview to database as html format directly without save in HD. Is there anyway to do that ?


Thanks

Re: Save to database directly as html

Posted: Tue Sep 20, 2005 9:21 am
by Sergey Tkachenko
If you want to store to database from TRichView or TRichViewEdit, use SaveHTMLToStreamEx/SaveHTMLToStream method (in the same way as SaveRVFToStream is used in Demos\Delphi\DB Demo\2 RichViewEdit\)

If you want to DBRichViewEdit to store data in a custom format, it's possible starting from TRichView v1.9.13 (available for registered users): OnLoadCustomFormat and OnSaveCustomFormat events.