Page 1 of 1

Problem after reload of TRichview

Posted: Sun Mar 27, 2011 9:09 pm
by agent86
Delphi 7
MS SQL Server 2000

I have a problem and had to reload Delphi and TRichView.

Since then I have a number of issues but the one that is stumping me relates to the DBRichViewEdit.

Instead of the text I am getting the following...I'm used to seeing this when I look at the DBRichView data in the database not in the DBRichViexEdit.

EXAMPLE 1

-8 1 3
-9 2 0 0 2 0 1
rvs
Ð

EXAMPLE 2

-8 1 3
-9 2 0 0 2 0 1
rvs
ø

More info...

Posted: Mon Mar 28, 2011 12:40 am
by agent86
Delphi 7 Enterprise
MS SQL 2000

I also get errors when I try to post the data back to the database. If I clear the DBRichViewEdit it updates the rest of the data fine.

Posted: Mon Mar 28, 2011 4:36 pm
by Sergey Tkachenko
Do I understand correctly: when you display the field content using TDBRichViewEdit control, all looks correct. But when you try to display the same field using TDBRichView control, it displays these codes instead of document?

If yes, the problems are in property settings. When DBRichView (or DBRichViewEdit) fails to load RVF, it tries to load RTF; if it fails too, it loads as a plain text, and you can see these codes.

If the same document can be loaded in another control, the only explanation is in property settings.
The first thing to try: right click DBRichView, choose "Settings" in the content menu, make sure that "Allow adding styles dynamically" is set on the page "Styles". On the page "Tags", select "Tags store strings".