Hello Without using Lotus script
I want to create a new document and I seize of field and to save it
ALL THIS WITHOUT OPENING DOCUMENT (Except session)
Thank you for your assistance
Hello Without using Lotus script
I want to create a new document and I seize of field and to save it
ALL THIS WITHOUT OPENING DOCUMENT (Except session)
Thank you for your assistance
Subject: Created document without opning it
Plenty of examples in the help file for this.Perhaps you should have checked there before posting this request.
But I’ll post this code anyway:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = db.CreateDocument
Call doc.ReplaceItemValue(“Form”, “YouirFormName”)
Call doc.ReplaceItemValue(“anotherfieldname”, somevalue)
… create/set more fields…
Call doc.Save(False, false)
The code above will create a new document in the current database.
// Kenneth Haggman, http://www.noteshound.com