JAVA/CORBA CLASSES


Working with attachments and embedded objects in Java classes
File attachments and embedded objects are represented through the EmbeddedObject 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 RichTextItem.

The HasEmbedded property of Document 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 Document.

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 Document. Test the Type property of each item for Item.ATTACHMENT. To get an attachment of this type, use the getAttachment method of Document.

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


The following methods of EmbeddedObject apply to attachments only:
The following methods of EmbeddedObject apply to embedded objects only: