rtLib — Notes Rich Text Management Library Documentation of rtLib — Notes Rich Text Management Library Download rtLib — Notes Rich Text Management Library FAQ of rtLib — Notes Rich Text Management Library Purchase rtLib — Notes Rich Text Management Library Feedback about rtLib — Notes Rich Text Management Library
rtAttachment

attachFile

Start searchMail feedback

rtAttachment


BeginInsert
Created
FileName
FilePath
FileSize
Font
ID
Image As rtGraphic
InternalName
Modified
overwriteConflict
parentParagraph
Parent
ParentContainer
ParentObject
root
Style



addNewLine
attachFile
Add
Clear
Collection
extractFile
EndInsert
getFirstElement
getLastElement
getNextElement
getPrevElement
getText
new
remove
removeAttachment
setStyle

version 1.5

Function attachFile (filepath As String, docTmp As NotesDocument)

Attaches file to provided NotesDocument for the storage of attachment (may be only a temporary document - although it will get saved in process, so it must be manually removed if not permanent).

If the second parameter is Nothing, method uses as temporary document the last document used (either source or target).

An alternative way is to define FilePath property. The file will get attached at the moment the item gets written. In this case there is no need to figure out which document will be used as a temporary storage..