The following code starts Lotus Notes, create a new memo and then display the new email in Lotus Notes. However it needs to be written so it compiles when Option Strict is on.
Dim session as Object
Dim db as Object
Dim domDoc as Object
Dim ws as Object
session= CreateObject("Notes.NotesSession")
db = session.GetDatabase("", "mailfile.nsf")
db.OpenMail()
domDoc = db.CreateDocument
CallByName(domDoc, "Form", CallType.Set, "Memo")
CallByName(domDoc, "SendTo", CallType.Set, "email address")
ws = CreateObject("Notes.NotesUIWorkspace")
ws.EditDocument("True", domDoc)
If I add a reference to the Domino class and do
Dim session as Domino.NotesSession
session = CType(CreateObject("Notes.NotesSession"), Domino.NotesSession)
I get an error saying specified cast is not valid. Please help
Dim session as Object
Dim db as Object
Dim domDoc as Object
Dim ws as Object
session= CreateObject("Notes.NotesSession")
db = session.GetDatabase("", "mailfile.nsf")
db.OpenMail()
domDoc = db.CreateDocument
CallByName(domDoc, "Form", CallType.Set, "Memo")
CallByName(domDoc, "SendTo", CallType.Set, "email address")
ws = CreateObject("Notes.NotesUIWorkspace")
ws.EditDocument("True", domDoc)
If I add a reference to the Domino class and do
Dim session as Domino.NotesSession
session = CType(CreateObject("Notes.NotesSession"), Domino.NotesSession)
I get an error saying specified cast is not valid. Please help