WYSIWYG DbRichViewEditor

General TRichView support forum. Please post your questions here
Post Reply
mboloz
Posts: 4
Joined: Sat May 14, 2016 3:02 am

WYSIWYG DbRichViewEditor

Post by mboloz »

Hello There Newbie here,

How to Get WYSIWYG RichViewEditor when copy - paste Doc
I Try on your compiled demo work perfectly, but wont work on my own apps?? Like Font Style Font Size color and etc

Thanks

Image
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In your application, existing collections of TextStyles and ParaStyles are used when inserting RTF (RTF character and paragraph attributes are mapped to the most similar existing styles).

Right click TDBRichViewEdit at design time, choose "Settings" in the popup menu, select "Allow adding styles dynamically". Actually, this option must be default for new components created at design time. If not, check "Default" before clicking OK.

For components created in code, assign

Code: Select all

dbrve.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;
dbrve.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;
mboloz
Posts: 4
Joined: Sat May 14, 2016 3:02 am

Post by mboloz »

:D Thanks its work now
Post Reply