ben oui normale
ws.CurrentDocument te renvois un notesuidocument
et copytodatabase c'est pour les notesdocument
Dim ws As New Notesuiworkspace
Dim DB1 As NotesDatabase
Dim UIDoc As NotesUIDocument
Dim Doc As NotesDocument
Set UIdoc = ws.CurrentDocument
If Not UIDoc.EditMode Then
UIDoc.EditMode = True
End If
Call UIDoc.Refresh
Call UIdoc.Save
Set Doc = UIDoc.Document
Set DB1= DBOpen("server","path","file.nsf","repliqueid")
If DB1 Is Nothing Then
Msgbox "db1 inaccessible"
End If
Call doc.CopyToDatabase( DB1 )
Call UIDoc.close