Results 1 to 2 of 2

Thread: Do u NOTES ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    Oporto - Portugal
    Posts
    16

    Talking

    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

  2. #2
    Member
    Join Date
    Sep 1999
    Location
    Gloucester, UK
    Posts
    33
    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
    VB / GIS Consultant
    VB6 SP4, VC++6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width