Edit the text in RichViewEdit,and save them into DB.
Now,the text data is include a variety of font,size,bold,etc.
Load it from DB,the text will become the only "normal text",not is the rich text.
How to make the load text to become original rich text?
Thanks.
How use the TRVStyle for save and load format text?
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Make sure that rvfoSaveTextStyles and rvfoSaveParaStyles are included in rve.RVFOptions, and rve.RVFTextStylesReadMode=rve.RVFParaStylesReadMode=rvf_sInsertMerge
PS: it's better to use TMemoryStream instead of TStringStream
PPS: if you load using rve.InsertRVFFromStream, do not forget to call rve.Clear before. But you can load using rve.LoadRVFFromStream instead.
PS: it's better to use TMemoryStream instead of TStringStream
PPS: if you load using rve.InsertRVFFromStream, do not forget to call rve.Clear before. But you can load using rve.LoadRVFFromStream instead.