NotesUIDocument.Close brings up user dialog

I have a VB application used in testing that creates and sends Email. I’m using automation through the Notes client and everything works fine with R5. However with R6, the call to NotesUIDocument.Close, brings up a dialog each time it trys to close the message. I tried this with and without the R6 immediate parameter.

Is there a setting, work around, or a proper way of dealing with this so I do not get the dialog?

Muchas Gracias

Subject: Try NotesDocument.SaveOptions = “0” Before the call to .Close

Subject: RE: Try NotesDocument.SaveOptions = “0” Before the call to .Close

I appreciate the try, but it didn’t work. Thanks anyway.

Subject: Do you really need to bring it up in the client?

If not you could do the whole thing in the background.Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = s.GetDatabase(“server”, “file”)
Set doc = New NotesDocument(db)
doc.Form = “Memo”
doc.SendTo = “Person A”
doc.Subject = “Here’s the document you wanted”
doc.Body = “Some very long string”
Call doc.Send(False)

Subject: RE: Do you really need to bring it up in the client?

Good idea. Works great, thanks a ton.

Subject: RE: Do you really need to bring it up in the client?

My situation forces me to use the UI interface. Does anyone know how to get around this problem?