attachment - Attach a file to rich text item in Lotus Document -
i'm trying attach file document in lotus.my file situated here in c:\dev\3.txt, form test , richtext field want attach field "test". tried lotusscript code attach file field 'test' put file in end of document , not in field:
dim uidoc notesuidocument dim w new notesuiworkspace dim object notesembeddedobject dim doc notesdocument dim rtitem notesrichtextitem set uidoc=w.currentdocument set doc = uidoc.document set rtitem = doc.getfirstitem( "test" ) set object= rtitem.embedobject(embed_attachment, "", "c:\dev\3.txt") doc.form = "test" call doc.save( true, false) call uidoc.close
try use code:
files = workspace.openfiledialog(true, "file list","", "") forall in files set object = rtitem.embedobject(embed_attachment, "",i,"") end forall
Comments
Post a Comment