in lotus notes 6.5.6 i have a document and inside this there is a "clone doc" button that create a copy of the uidoc and open it in workspace. My problem is that when the cloned document is opened in the workspace is already saved and i don't want this. i have already check in the "Queryopen", "Postopen"... states but there isn't a doc.save call. So, how can i open a new cloned doc in my workspace without saving it ? Here is my wrong code.
Dim session As New notessession
Dim uiw As New notesuiworkspace
Dim uidoc As notesuidocument
Dim db As NotesDatabase
Dim newdoc As NotesDocument
Dim NewUIDoc As NotesUIDocument
Dim doc As notesdocument
Set uidoc=uiw.currentdocument
Set db=session.currentdatabase
Set doc=uidoc.document
Set newdoc = db.CreateDocument
Call doc.CopyAllItems( newdoc)
Set NewUIDoc = uiw.EditDocument( True ,newdoc)