Creating a document in LotusScript® classes
Use the New method of a NotesDocument object to create a new document in a database.
Use the Save method of NotesDocument to post the new document to the database in storage. Otherwise, the new document is lost when the program exits.