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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -