seems the doc.rtfitem = “” dosen’t work…what can i do to remove the attachment in the rtf filed?
Subject: how can i remove(or clear) the attachment in richtextitem?
try this
Set rtitem = doc.GetFirstItem( “rtfitem” )
If ( rtitem.Type = RICHTEXT ) Then
Forall o In rtitem.EmbeddedObjects
If ( o.Type = EMBED_ATTACHMENT ) Then
Call o.Remove
Call doc.Save( False, True )
End If
End Forall
End If
Subject: RE: how can i remove(or clear) the attachment in richtextitem?
thanks gobinath
it really work…but…i got error msg “object variable not set” after all attachment moved…why it can’t end the forall?
Subject: how can i remove(or clear) the attachment in richtextitem?
er…seems ok now…