LOTUSSCRIPT/COM/OLE CLASSES


Working with attachments and embedded objects in LotusScript classes
Example

File attachments and embedded objects are represented through the NotesEmbeddedObject class.

Note Embedded objects and object links are not supported for OS/2, UNIX, and the Macintosh. File attachments are.

To access an attachment in a rich text item, do one of the following:


To access an embedded object in a rich text item, do one of the following:
To create an attachment or embedded object in a rich text item, use EmbedObject of NotesRichTextItem.

The HasEmbedded property of NotesDocument indicates whether a document contains any attachments or embedded objects.

To get all the embedded objects in a document, including objects that were originally embedded in the form from which the document was created, use the EmbeddedObjects property of NotesDocument.

To locate pre-R4 file attachments not associated with a rich text item, get all the items in the document, for example, by using the Items property of NotesDocument. Test the Type property of each item for ATTACHMENT. To get an attachment of this type, use the GetAttachment method of NotesDocument.

The following properties and methods of NotesEmbeddedObject apply to both attachments and embedded objects:


The following property and method of NotesEmbeddedObject apply to attachments only:
The following properties and methods of NotesEmbeddedObject apply to embedded objects only:
Example
See Also