I have a rich text lite thumbnail field (called “Thumbnail”) that is populated, but the following code doesn’t work…
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim col As NotesDocumentCollection
Dim doc As NotesDocument
Dim rt As NotesRichTextItem
Dim aeo As Variant
Dim eo As NotesEmbeddedObject
Set db = session.CurrentDatabase
Set col = db.UnprocessedDocuments
Set doc = col.GetFirstDocument
Set rt = doc.GetFirstItem("Thumbnail")
aeo = rt.EmbeddedObjects
Set eo = rt.GetEmbeddedObject("thumb.jpg")
'At this point, neither aeo nor eo contain anything even though the rich-text light thumbnail field named "Thumbnail" contains a field and there's a corresponding $FILE field containing a file named thumb.jpg.
End Sub
Copying the Thumbnail field to a new document using rt.CopyItemToDocument doesn’t display the image on the new document.
Copying the corresponding $FILE field causes an error because LotusScript doesn’t allow copying fields of type “attachment” or “other”.
Anyone got any ideas?