Domino 9 und frühere Versionen > Entwicklung

Probleme beim lösen von Anhägen mit Agent

<< < (2/2)

Axel:
Hi,

das hab ich in der Designer-Hilfe gefunden:


--- Zitat ---Examples: EmbeddedObjects property  

This script goes through all the file attachments, object links, and embedded objects in the Body item of a document. Each time it finds a file attachment, it detaches the file to the SAMPLES directory on the C drive and removes the attachment from the document. The script has no effect on the object links or embedded objects in the Body item.
Dim doc As NotesDocument
Dim rtitem As Variant
'...set value of doc...
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
  Forall o In rtitem.EmbeddedObjects
    If ( o.Type = EMBED_ATTACHMENT ) Then
      Call o.ExtractFile( "c:\samples\" & o.Source )
      Call o.Remove
      Call doc.Save( False, True )
    End If
  End Forall
End If

--- Ende Zitat ---

Hier wird mit If ( o.Type = EMBED_ATTACHMENT ) Then geprüft, ob es sich um ein Attachment handelt und erst dann wird der Anhang gelöst.

Ändere mal deinen Agenten entsprechend ab und versuch's mal. Vielleicht bringt dich das weiter.


Axel



MrMagoo:
Danke nochmal für Eure mühe. Das eigentliche Problem (hab ich vorher leider nicht erkannt) ist, das die Schablone, dieser einen Mail verändert wurde und es somit nicht funktionieren konnte.
Danke nochmal!

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln