Hi! please, help me… I have agent which create word document and must embed it to Rich Text field of current document.
But i don’t see attachment file in field after agent execution.
if i close document and open it again attachment file will be in protected area of the form (in the bottom of document, under the line), not in field.
What’s wrong? What can i do?
Agent code:
If Not (uidoc.Editmode) Then uidoc.EditMode=True
Set rtitem2=uidoc.Document.GetFirstItem("Attach")
Call rtitem2.EmbedObject(EMBED_ATTACHMENT,"","c:\"+uidoc.FieldGetText("ID")+".doc")
Call uidoc.Save
uidoc.Refresh
Please, help me!!!
Helena.