trichview.com

trichview.support




Re: Multiple lines in one RVData.SetItemText(i, value)


Return to index


Author

Message

Jim Maguire

Posted: 06/08/2005 6:29:22


Sergey, thanks for your help thus far.  I've got some very complicated forms

working with the smarttags,  I save the field info in the tags, works great!

My only problem now is inserting these Memo fields.


I tried deleting the field and then inserting the stream, but get nothing

inserted when call rve.RVData.InsertRVFFromStream(vStream, ItemIndex):


I traced the problem into TCustomRVData.InsertRVFFromStream_, where the

following code aborts:


          rstHeader:

            begin

              if not RVFReadHeader...)  then

                abort; {error}


I think my problem may be because the field is the only item in a table

cell, ItemNo = 0 and I've just deleted it.  If you can't see an obvious fix,

maybe I should insert one line at a time?  I've used your FillFields

example, so can you suggest a way to insert one line at a time in an empty

cell using the RVData of the cell?


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:42a1b05c$2@support.torry.net...

> Item cannot contain linebreak characters by design.

> You cannot use SetItemText - you need to delete the field and insert

> several

> text items in its place.

> See the demo: http://www.trichview.com/support/files/mailmerge3.zip

>

> --

>

> I have a mail merge form using RichEdit where one of the fields can be

> updated with mutliple lines.  I tried adding #13#10 but the "value" in the

> SetItemText call was truncated at the 1st #13, so I assume that's a no-no.

>

> Is there some other special char I can imbed in the string I'm inserting

> that will result in NL's?

>

>





Powered by ABC Amber Outlook Express Converter