Re: That pesky first item

Return to index



Sergey Tkachenko

Posted: 02/21/2005 20:03:53

You can add data to table cell in the same way as in the main editor, using

Add*** methods (AddItem, AddNL, etc.).

Moreover, you can (and should) reuse the code adding data to them main

editor and to cells (for the main editor, use RichViewEdit.RVData, for

cells - use cells themselves).

Avoid using method working with selection and caret position when generating


> If I avoid calling Format, then I get an error when I add a table, then

> start adding data inside the table cells. The error is thrown inside

> TCustomRVFormattedData.RestoreSelBounds, and it's a "list index out of

> bounds" error. The issue seems to be related to calling RVData.Edit on

> the table cell; if the document isn't formatted, I can't call that

> because it generates the error, and I don't think I can add data to a

> table cell without calling Edit, can I?

Powered by ABC Amber Outlook Express Converter