Page 1 of 1

EListError - List index out of bounds (0) - with any table..

Posted: Sat Sep 27, 2008 9:07 pm
by photoStu
DBRichViewEdit v.10.4
Interesting problem:
If a any table is present in DBRichViewEdit - is an error at opening: "List index out of bounds (0)"

Lines, text or pictures, are saved in the DBRichViewEdit (BLOB field) - all is normal, but as soon as I place a table, an EListError appears! This error with any table - or done by RichViewActions or simply copied from MS Word).

An insertion and saving of tables work perfectly. After an insertion I see this table. Why I can not open a Form with (open DataSet), if a table is there present in DBRichViewEdit ?

But if tables are not present in DBRichViewEdit - all OK...

Please help!

Posted: Sun Sep 28, 2008 7:03 am
by Sergey Tkachenko
There is a known problem with TDBRichView[Edit] and tables.
It occurs when:
- TDBRichView[Edit] is placed on non-main form;
- It is linked to the table what is active by default.

The exception occurs when the form is shown, if the current record includes document with tables.

Workaround:
- link it to inactive table, and open this table in FormCreate;
or
- link TDBRichView[Edit] to this table only in FormCreate (for example, by assigning DataField property in code).

Posted: Sun Sep 28, 2008 7:53 am
by photoStu
Thank's!