trichview.com

trichview.support




setting tabel->StyleNo shows table name instead of table


Return to index


Author

Message

Benedikt Weber

Posted: 06/20/2002 13:12:36


I use AddItem(<table name>, table)  to add a table in RichViewEdit

programmatically. The user should be able to insert his own text after the

table in default Style "normalText". Therefore I set the text style of the

table to normalText.


Surprisingly the table name is shown instead of the table!


RichViewEdit1->AddNL("Summary",headerText,headerPara);

TRVTableItemInfo* table= summaryTable();

table->ParaNo= tablePara;

table->StyleNo= normalText;

RichViewEdit1->AddItem("SummaryTable", table);


Perhaps I should not do that, but I don't see another way to set the default

TextStyle for following paragraphs. There is no Problem with the ParaStyle.

There I can set the NexParaNo property.


Benedikt





Powered by ABC Amber Outlook Express Converter