trichview.com

trichview.support




Re: Editor gives list index out of bounds


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/10/2002 18:49:50


The most probable cause of problem is non-saving of text/paragraph styles.

If you use procedures that add styles to the collections, you must store

styles in the database field together with documents.

Right click dbrichviewedit in Delphi, choose "Settings" in the context menu,

then choose "Allow adding styles dynamically". Click OK.


PS: this text with numbers is a native RichView Format (RVF) displayed as a

plain text. DBRichViewEdit first tries to load RVF. If it fails (the most

probably, because of styles), it tries to load as RTF, then as a plain text.


>

> I have downloaded the trial version, and have modified the texteditor to

allow

> me edit a couple of different fields, and everything works fine when there

> is nothing in the datasource.  I have the datafield/datasource pointing to

> a blob field on a table, and sometimes, when I save the text and then try

> to edit it again, it ends up with the text corrupted, and lots of numbers

> proceeding it:

>

> e.g.

>

> 8 2 0 0 0 1

> This is text

>

> 9 0 2 2 2 1

> This is more text

>

> In many cases, when I display a form which contains the dbrichview

component,

> I also get a 'list index out of bounds' when displaying the form with

there

> is text in the underlying datafield.

>

> FieldFormat is natve, and I have set the style property.

>

> Would anybody have any idea where to start searching for whatis causing

the

> error?

>

> Thanks,

>

> Stewart Bourke

>





Powered by ABC Amber Outlook Express Converter