Hello Friend,
I am using your function to remove all formatting.
When I did it, I notice that it was done only on the screen.
How to save this changed in table with the text?
thanks
Removing formatting with DBSRichViewEdit1
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
See http://www.trichview.com/help/idh_examp ... edit1.html
Insert your code for clearing text format instead of
Insert your code for clearing text format instead of
Code: Select all
DBRichViewEdit1.Clear;
DBRichViewEdit1.LoadRTF(OpenDialog1.FileName);
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Use this code:
Or, if you want to save changes immediately:
DBRichViewEdit1.CanChange activates table editing, it makes table state = dsEdit
Code: Select all
if DBRichViewEdit1.CanChange then begin
<your code for clearing formatting here>
DBRichViewEdit1.Change;
DBRichViewEdit1.Format;
end;
Code: Select all
if DBRichViewEdit1.CanChange then begin
<your code for clearing formatting here>
DBRichViewEdit1.Change;
Table1.Post;
end;