Hi AllI am admin, when im attaching files in web. It saves all files but when some one else trying to attach more than one files then only last file which he attaching is saved & rest of all not saved. The agent which im writing is as follows :
Sub Initialize
Dim sess As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
Dim object As NotesEmbeddedObject
Set db = sess.CurrentDatabase
Set doc = sess.DocumentContext
Set rtitem = New NotesRichTextItem( doc, "rich" )
Forall i In doc.attach
Set object = rtitem.EmbedObject(EMBED_ATTACHMENT, "", i, "attach" )
End Forall
End Sub
Sanjay Prasad