Page 1 of 1

Problem Saving with TDBRichViewEdit

Posted: Mon Sep 03, 2007 3:34 pm
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.

Posted: Tue Sep 04, 2007 5:21 pm
by Sergey Tkachenko
How can I reproduce this problem?

Posted: Fri Sep 07, 2007 4:12 pm
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