Also bei mir geht's...
Eine Maske mit nem RT-Feld Picture und das im Postopen:
Sub Postopen(Source As Notesuidocument)
source.EditMode = True
Call source.GotoField("Picture")
Call source.Import("GIF Image", "c:\\Temp\\test.gif")
End Sub
Ein Button mit folgendem Code ruft die Dialogbox auf (123 ist der Name bei mir):
@DialogBox( "123" ; [AutoHorzFit] : [AutoVertFit] : [NoCancel] : [NoNewFields] : [NoFieldUpdate] : [SizeToTable] : [OkCancelAtBottom] ; "123" )
Die restlichen Sachen müsstest du dir halt anpassen.
Ich hab's auf die Schnelle mal getestet.
Mit dem Code von oxyd21 funktioniert's einwandfrei.
Mit diesem Code bekomme ich auch die besagte Fehlermeldung.
Sub Postopen(Source As Notesuidocument)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
uidoc.EditMode = True
Call uidoc.GotoField("Picture")
Call uidoc.Import("GIF Image", "c:\\test.gif")
End Sub
@Iron
Hast du oxyd21's code schon mal getestet?
Axel