Problem Saving with TDBRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
Beni B.
Posts: 2
Joined: Mon Sep 03, 2007 3:27 pm

Problem Saving with TDBRichViewEdit

Post by Beni B. »

Hi

I'm having a look at your component. I like it very much. We will probably register it soon.

I just have a big problem and I don't know how to solve it:
We have a MS SQL Database and we need to put RTF Text of the DBRichViewEdit in a DB-Field (Fieldtype TEXT). We need to store it like this to show it in Crystal Report.

I set FieldFormat to rvdbRTF and ParaStyleMode and TextStyleMode to rvrsAddIfNeeded. If I just want to display the RTF-Text stored in the DB, everything works fine. But if I want to update or insert data, the hole RTF-Text shows in the DBRichViewEdit and not just the text the user typed in.

Any suggestions how I can solve this problem?

Thanks in advance.
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

How can I reproduce this problem?
Beni B.
Posts: 2
Joined: Mon Sep 03, 2007 3:27 pm

Post by Beni B. »

I figured out that the DB-driver has problem with large text. The driver cuts off the last character (}), so its no longer proper RTF-Code.

I'm sorry to bother you with this problem.

Thank you
Post Reply