-
Hi guys !!!
I'm working with both, Lotus Notes and VB 6 Pro 3 see these
Code:
'Open Notes
Set session = Createobject (NOTES.NOTESSESSION)
Set db = session.GETDATABASE("","C:\notes\notes.exe =h:\notes\notes.ini")
The problem is that when Lotus Notes opens it doesn´t appears my configuration of Notes, even if i put the path like i have in Notes.exe (shortcut---> C:\notes\notes.exe =h:\notes\notes.ini
What about use the ShellExecute?????
Any idea !!!!!
Thanks in advance
-
I have this piece of code floating about in my repositry, maybe it will help you:
Dim domSession As New Domino.NotesSession
Dim domDatabase As New Domino.NotesDatabase
Dim domDocument As NotesDocument
Dim domViewEntry As NotesViewEntry
Dim domView As NotesView
Dim domViewNav As NotesViewNavigator
Dim strName As String
domSession.Initialize
Set domDatabase = domSession.GetDatabase("", _
"names.nsf")
Set domView = domDatabase.GetView("Contacts")
' This view contains the list of names
Set domViewNav = domView.CreateViewNav
Set domViewEntry = domViewNav.GetFirstDocument()
Set domDocument = domViewEntry.Document
strName = domDocument.GetItemValue("FullName")(0)
MsgBox strName
Set domViewEntry = Nothing
Set domViewNav = Nothing
Set domView = Nothing
Set domDocument = Nothing
Set domDatabase = Nothing
Set domSession = Nothing