Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: skywook am 06.10.14 - 13:45:14

Titel: CopyItemToDocument
Beitrag von: skywook am 06.10.14 - 13:45:14
Hallo,

kopiert CopyItemToDocument den Anhang in einem RichtextFeld auch mit?

Oder muss ich den Anhang lösen und dann ins neue Item anhängen?

Für einen Tipp wäre ich dankbar.

Titel: Re: CopyItemToDocument
Beitrag von: klaussal am 06.10.14 - 13:52:31
Google:

Zitat
Usage
 When you call this method using a NotesRichTextItem object, file attachments, embedded objects, and object links that are contained within the rich text item are not copied to the destination document.

Titel: Re: CopyItemToDocument
Beitrag von: Mitch am 06.10.14 - 13:54:16
Howdy,

ja, wird mitkopiert. Allerdings nur, wenn du das Item in ein anderes Dokument kopierst. Sonst gibt es Fehler. Siehe diesen Beitrag (auch die Antworten, insbesondere die letzte): http://atnotes.de/index.php/topic,51945.0.html

Gruß,

Mitch
Titel: Re: CopyItemToDocument
Beitrag von: Mitch am 06.10.14 - 13:57:23
Google:

Zitat
Usage
 When you call this method using a NotesRichTextItem object, file attachments, embedded objects, and object links that are contained within the rich text item are not copied to the destination document.


Interessant. Also der kopiert mir Anhänge und eingebette Bilder wunderbar mit. Die Notes-Hilfe (9) zu CopyItemToDocument erwähnt die Einschränkung nicht macht es im Beispiel mit dem Body-Feld einer Mail...