embedObject (NotesRichTextItem - JavaScript)

Given the name of a file or an application, either: attaches the file you specify to a rich text item or embeds an OLE/1 object in a rich text item. The OLE/1 object is created using the file you specify.

Defined in

NotesRichTextItem

Syntax

embedObject(type:int, class:string, source:string, name:string) : NotesEmbeddedObject
Parameter Description
type One of the following:
  • 1454 EMBED_ATTACHMENT
  • 1453 EMBED_OBJECT (OLE/1 objects only)
class Specify an empty string ("").
source Specify the name of the file to attach or embed.
name Specify a name by which you can reference the embedded object later. Can be null.
Return value Description
NotesEmbeddedObject The newly attached file or embedded OLE/1 object.

Usage

Files can be attached on any supported platform. Files can be embedded as OLE/1 objects on any supported platform (if the file is of a supported type).