Page 1 of 1

DBRichView Problems

Posted: Mon Apr 09, 2007 10:40 am
by kitenga
(1) On my laptop using Delphi 7, I carefully copied the RVActions demo, but changed to a DBRichViewEdit component. It works OK except for tables. I can open a new doc, and insert a table and save OK. When I try to Read the document back in, it gives Stack overflow on the table.

What can I do to prevent the stack overflow message?

(2) On a different new machine, I loaded 1.9.8, and test the RVAction demo. All goes well.

I then tried to make a new application using TRVDBRichViewEdit. As soon as I try to add this component tom my application at design time, I get a Access violation.

What can I do to make this compopnent work at design time?

Thank you.

Posted: Mon Apr 09, 2007 4:12 pm
by Sergey Tkachenko
If you show a new form for editing rich text field in database using TDBRichViewEdit, error can occur. This is a known problem.

The solution is simple. Instead of linking DBRichViewEdit to table at design time, do it in Form.OnCreate.
For example, leave DataField property of DBRichViewEdit clear in the Object Inspector, but assign it in FormCreate.