server OS is windows (NT/2000/XP). i’d like to import an external file (this file is located in a directory of domino server. file type is various.) into a notes document as attachment. as user run a web agent via browser, this agent will do it. is this possible?
Subject: is it possible to import external file into notes document?
That’s simpel with a LS-Agent.
Dim objectRes As NotesEmbeddedObject
Dim rtitem As NotesRichTextItem
Dim outdoc as Notesdocument
–>> here session, db, set document and so on
Set rtitem = New NoesRichTextItemoutdoc,“FileBody”)
Set objectRes = rtitem.EmbedObject ( EMBED_ATTACHMENT, “”, “your-file-here”)
and maybe make it public:
Call outdoc.ReplaceItemValue (“$PublicAccess”, “1” )
That’s the core ![]()