Inherit Entire Selected Document in background?

A Notes form has a feature called “Inherit Entire Selected Document in background”. This seems to be a UI feature. Is there anyway a background Notes agent can “paste” a whole form / document into the body field much like the feature I mentioned does? Kind os like a background forward?

If so how?

Subject: Inherit Entire Selected Document in background?

The closest is the RenderToRTItem method, which is a bit buggy but will generally do what you want.

Subject: RE: Inherit Entire Selected Document in background?

Thanks Ben. Thant worked perfectly. I thought there was such a function but I was looking for it in NotesRichTextItem.

One little glitch. The form had a image resource. I had to make it an image for it to work. It would be nice if there was an option in RenderToRTItem to convert resources to images.