Example: Creating a document
This example creates a new document in a database and adds four item values.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument(db)
doc.From = session.UserName
doc.Subject = "Mary Lee"
doc.Categories = "Eastern"
doc.Body = "OK"
Call doc.Save(True, False)
End Sub