Hi everybody,
Does anyone know how to place the cursor at the end of a rich text item. I’m trying with NotesRichTextNavigator. Client’s crashing. For some reason it doesn’t instantiate rtnavbody (rtitem is initialized).
Set rtnavBody = rtitem.CreateNavigator
Call rtnavBody.SetPositionAtEnd(rtnavBody)
Thanks for your time,
Rachel
Subject: How to place cursor at end of rtitem
did you ever find a solution?
Subject: RE: How to place cursor at end of rtitem
The problem is that RichTextNavigators cannot just go to the end or beginning of the RichTextItem. They can only go to the beginning or end of a type of element within the RichTextItem.
To add data on to the end of a RichTextItem, you can use any of these methods:
AppendDocLink
AppendParagraphStyle
AppendRTItem
AppendStyle
AppendTable
AppendText
If you absolutely need a RichTextNavigaotr object then you could consider the following method.
-
Append some unique text (eg. “%%$$##@@”) to the bottom of the RichTextItem using AppendText method.
-
Create a RichTextNavigator and Search for the unique text created in step 1 using .FindFirstString. or FindLastElement.
-
Set the insertion pointer to be the end of the unique string using RichTextRange.
-
Do whatever you need to do with the navigator or range.
-
Remove the unique text (added in step 1) with rtrange.FindAndReplace.
Ethann Castell
Caliton Innovations
www.caliton.com
Subject: RE: How to place cursor at end of rtitem
Hello,
I am attempting to use this method but I am unable to locate the appended string. I have tried saving the document after the append but still it is not located.
Any Ideas?
Subject: *I know I am biased, but why the heck are the Notes RT classes so stupid?
Subject: *I know I am biased, but why the heck are the Notes RT classes so stupid?
Ben, are you sure you didn’t speak with the developers when they were putting the new classes together ? 
New RT classes are frustrating because they appear to open the whole RT area but in fact they often only tease you into thinking that you can do something, when in fact you still can’t. My experience has been that they tend to crash the Notes client a lot unless you get all the commands in exactly the right order. Reminds me of C API development. Some better error handling would be nice.
I think that the Midas product line is pretty safe for the foreseeable future.
Ethann Castell
Caliton Innovations
www.caliton.com