Page 1 of 1

DBRichView problem

Posted: Thu Jun 19, 2008 11:49 am
by alatocha
I have a problem with DBRichView (server MSSQL 2000, field type text). I change FiledFormat property to rvdbRTF (I neek it becouse I show this field in my report).

I DBRichView I format text (color, font etc.) save in server. Everything is OK in report text is showin properly (evry formating).

And now I wont to edit this field and is a problem in componenet every formating is lost.

Posted: Thu Jun 19, 2008 12:38 pm
by Sergey Tkachenko
Make sure that RTFReadProperties.TextStyleMode and RTFReadProperties.ParaStyleMode are set to rvrsAddIfNeeded for the editor.
(Or, better, right click the editor in Delphi, choose "Settings" in the context menu, and make sure that "Allow adding styles dynamically" is set).
Besides, if you edit in TDBRichViewEdit, set AutoDeleteUnusedStyles property to True.

DBRichView no problem

Posted: Thu Jun 19, 2008 2:35 pm
by alatocha
THX very mauch everything work properly