Rich Text - getting items from formA to formB

I’m almost there with rich text, but I need a little help.

I have a form action button that composes a new document, but pre-populates certain computed fields from data pulled from another doc in the database. I’m successful with everything except for one rich text field; I lose the formatting (colors, font syles etc) when it appears in the newly-composed document.

Apologies, but my code is at work (and I’m not!) so I can’t easily show you what I’ve written so far. Both formA (hosts the info to be retrieved) and formB (newly created doc) have a rich text field called “courseware.”

When I run my action button I expect to see the formatting to be the same but it’s not. It could be that I’m using NotesDocument.GetItemValue: returns the text content of a rich text item as the first element of an array of type String.

What’s the preferred technique?

Subject: Rich Text - getting items from formA to formB

There are various more complex techniques, but at the very least you should use AppendRTItem.