Domino 9 und frühere Versionen > ND8: Entwicklung
NotesUIDocument.ImportItem() liefert eine Fehlermeldung zurück
rar:
Bin jetzt draufgekommen woran es lag...
Die Aussage mit dem Profildokument war ein Blödsinn. Sorry!
Das Problem lag an der Art, wie ich das RTF erstellt hab.
Falscher Weg:
set rtf = New NotesRichtextitem(docProfil, "Body")
call rtf.AppendItem(RTF-AusDemKonfigurationsDokument)
Richtiger Weg:
Call docProfil.Copyitem(RTF-AusDemKonfigurationsDokument, "Body")
Wenn das Item also mit Copyitem angelegt wird, funktioniert die ImportItem Methode.
pram:
--- Zitat ---Falscher Weg:
set rtf = New NotesRichtextitem(docProfil, "Body")
call rtf.AppendItem(RTF-AusDemKonfigurationsDokument)
--- Ende Zitat ---
Ggf. funktionierender Weg:
call docProfil.removeItem("Body") ' altes Item löschen...
set rtf = New NotesRichtextitem(docProfil, "Body") ' ... sonst hast du jetzt 2
call rtf.AppendItem(RTF-AusDemKonfigurationsDokument)
call rtf.update() ' RT-Bearbeitung abschließen
Gruß
Roland
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln