Import Method Insertion Point

I’m using the Import method of NotesUIDocument to put a corporate logo (GIF file) into the rich text Body of a mail. The insertion point seems to be wherever the cursor was last placed by the user. I want it at the end and expected that adding a line feed (Chr$(10)) using the FieldAppendText method would leave the cursor where I need it, but it doesn’t seem to work like that. Anyone know an answer?

Subject: Import Method Insertion Point

NotesRichTextField is a back-end object and won’t affect the cursor in the UI.

Try:

str1$ = “@Command([EditNextField])”

str2$ = “@Command([EditUp])”

flag = Evaluate(str1$)

flag = Evaluate(str2$)

If you’re starting in the field to which you’re adding content, this will take the insertion point to the next field, then back up one line, which will be the bottom of the current field.