NoteUIWorkspace not available from bookmarks displayed as a workspace

I’ve got a VB-application that uses OLE to create and open a document in Notes.

If the Notes client has on ‘old-style’ desktop, it works fine

if the Notes client has the ‘new-style’ bookmarks, displayed as workspace, the Notes UIWorkspace in not available. If this Notes client has a (random) db open, then the NotesUIWorkspace object works as expected.

Details:

VB-code :

set session=createobject(“Notes.NotesSession”)

set ws = createobject(“Notes.NotesUIWorkspace”)

set db=session.getdatabase( “”, “mydatabase.nsf” )

set doc=db.createdocument

call doc.replaceitemvalue(“Form”,“MyForm”)

call doc.replaceitemvalue( … , …)

… ’ setting all required fields here

call doc.save(true,true)

call ws.editdocument(true,doc)

the last line gives an notes-error, saying that this command is not available for the workspace.

If the user has a db open (e.g. his mail), the code runs without errors.