LotusScript to C API Programming Guide

rtLib Domino Rich Text Management template
Home
Show details for ContentContent
Purchase
Ready-to-use samples
Show details for Online resourcesOnline resources
Forum
Links
Happy readers

Anonymous

login


 

Hosted by Prominic.NET, Inc.
Main topic: Locate the $FILE to a richtext attachment object?

Locate the $FILE to a richtext attachment object? (by Kenneth Haggman, 12/11/2012 10:09:37 AM)

Actually, it is possible to get the 'real' as well as the 'internal' names of attachments through plain vanilla LotusScript.

Here is an example:

Set rtitem = doc.GetFirstItem( "Body" )

If (rtitem.Type = RICHTEXT) Then

Forall o In rtitem.EmbeddedObjects

If (o.Type = EMBED_ATTACHMENT) Then

o.Name '-- This will contain the 'internal' name of the attached file.

o.Source '-- This will contain the 'real' name of the attached file.

End If

End Forall

End If