Hi,
I have to create a new Doc based on (an already stored) template Doc and modify the inherited Body rich text field. The copy method goes well, the new Doc gets all fields with the appropriete values but I just cannot change content in the rich text field.
I tried many ways, I always got the error message “Element or navigator is invalid” after trying to set RTNav.
Set Doc = TempDoc.CopyToDatabase(DB)
Call Doc.save(True, False)
Set RTI = Doc.GetFirstItem(“Body”)
Call RTI.Update
Set RTNav = RTI.CreateNavigator
Call RTI.BeginInsert(RTNav)
Call RTI.AppendText(“Value”)
Call RTI.EndInsert
Thank you for your help!
Regards,
Etyien