Page 1 of 1

Bold style problem

Posted: Fri Feb 12, 2010 3:28 am
by hcourcelles
Hi,

I've been able to set bold style on some character in DBRichViewEdit.

Visually it is working and as soon as I click my bold button they appear in bold.

After that, I saved the record to the database.

If I close the window that I was working in and reopen it, the character that were in bold are now in red.

If I scroll through records and come back to the initial one, the character are not red anymore but in bold.

What is missing when I open the windows so the style are apply correctly immediately.

Best regards,

Helene

Posted: Sat Feb 13, 2010 4:02 pm
by Sergey Tkachenko
Probably, document is saved without collection of styles.
Right click TDBRichViewEdit in Delphi, choose "Settings" in the context menu, select "Allow adding styles dynamically".

Posted: Thu Feb 18, 2010 12:59 am
by hcourcelles
I've set the option as suggested.

It didn't work. The information was still in red so I inserted a new record to see if it was working with a brand new record and the problem was still there also.

I decided to erase all records from the database and inserted a new one and only then did it work when I've inserted bold in that new record, close the window, reopen it and it was OK.

Why did it only work when I erase all records from the database?

Thanks for helping understand this new component.

Posted: Thu Feb 18, 2010 9:54 am
by Sergey Tkachenko
Because existing documents were saved without collections of styles (without information about fonts)