Why is EmbeddedObjects empty?

I’ve got documents with attachments, I can see them. The HasEmbedded property is true, but EmbeddedObjects for the doc and the item are both empty.

Why?

cheers

gav

Subject: Why is EmbeddedObjects empty???

Hi,

look in the help db again.(…or you wont believe me :-))

The EmbeddedObjects-Property in the DOCUMENT is completly different from the EmbeddedObjects-Property in the RICHTEXTITEM.

In the document it returns ONLY OLE-Objects and no attachments.(In the RTItem is returns both)

Therefore you can have HasEmbedded=True but still any EmbeddedObjects in the Doc-Property.

!!! Why is this so. Dont ask me. (Id rather not even guess)

Bye

Hynek

PS: Maybe this code will help: (The ISARRAY is necessary !!!)

Forall RTItem In Doc.Items

	If RTItem.Type = RICHTEXT Then

		If Isarray(RTItem.EmbeddedObjects) Then

			Forall Object In RTItem.EmbeddedObjects

				Select Case Object.Type

				Case EMBED_ATTACHMENT:

					

				Case EMBED_OBJECT:

					

				End Select

			End Forall

		End If

	End If

End Forall