With the introduction of Lotus Notes and Domino Release 5.0.2b, you now
have the ability to manipulate the Domino object model via COM. As a result,
you can use VB 6.0 to take advantage of Lotus/Domino services and databases.
To do so, however, you'll need Lotus Notes client version 5.02.b (or higher),
Domino Designer client, or Domino Server. As with most Visual Basic object
libraries, the programs need not be running to use them. Lotus has plans to
make this runtime package distributable independent of its full software
installation.
Next, set a reference to the Notes back-end DLL, Lotus Domino Objects.
This object model conforms to a hierarchy similar to CDONTS, as seen in the
sample code, which displays a message box with the first name in a Lotus
Notes' address book. Notice that before you can access any of the objects
within the NotesSession, you must initialize a session first.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
Link Lotus Notes to Visual Basic 6.0
By ElementK Journals, published on 14 Jul 2001
| Filed in
You might also like...
VB 6 forum discussion
-
CorelDRAW VBA: cdrTraceLineDrawing FAILS, producing single linear path instead of Centerline trace?
by dancemanj (0 replies)
-
client/server application using activex
by beautifulheart (0 replies)
-
System Error &H8007007E. The specifed module could not be found.
by swiftsafe (5 replies)
-
Invitation to take part in an academic research study
by researchlab (0 replies)
-
Send SMS with SMPP
by mmahmoud (0 replies)
VB 6 podcasts
-
Stack Overflow Podcast: Podcast #45 – Keeping it Sharp
Published 7 years ago, running time 0h54m
Our guest this week is Eric Lippert – language architect extraordinaire and famous for all his work at Microsoft in developing their languages Eric joined Microsoft right out of college and was originally working on VB It’s time for everyone’s favorite game: Name the Worst Feature of that Microso.
Comments