trichview.com

trichview.support




Unicode error adding text


Return to index


Author

Message

Martin Holmes

Posted: 02/10/2005 16:35:36


Hi there,


I've trying to add text to a document using this:


       RVD.AddTextNLW(SomeText, RVE.CurTextStyleNo, -1, -1, True);


where RVD is a TCustomRVData, and RVE is the TRichViewEdit control. RVD

is sometimes the RVData of the main TRichViewEdit, and sometimes the

RVData of a table cell.


This error is raised:


       raise ERichViewError.Create(errRVUnicode);


The error occurs whether or not RVD is the main TRichViewEdit.RVData, or

the RVData from a table cell. If I use this:


       RVE.AddTextNLW(SomeText, RVE.CurTextStyleNo, -1, -1, True);


then I don't get the error, but then I can only add the text to the main

TRichViewEdit, and not to a table cell.


All help appreciated!


Cheers,

Martin





Powered by ABC Amber Outlook Express Converter