Problem after reload of TRichview

General TRichView support forum. Please post your questions here
Post Reply
agent86
Posts: 59
Joined: Mon Jun 28, 2010 2:18 am
Location: San Francisco Bay Area, USA
Contact:

Problem after reload of TRichview

Post 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
ø
agent86
Posts: 59
Joined: Mon Jun 28, 2010 2:18 am
Location: San Francisco Bay Area, USA
Contact:

More info...

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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".
Post Reply