CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Posts
    3

    Question on VB, Lotus notes

    Hi All,

    I am working on vB,Lotus notes.Here is the code i used to get the connection,get view information.

    Private Sub cmdNewok_Click()

    Dim session As Object
    Dim db As Object
    Dim view As Object

    Set session = CreateObject("notes.notessession")
    Set db = session.GETDATABASE("US-FAIRAPP001/Eastern/C&L/US", "MCS\WCP\contracts\contract.nsf")

    flag = True

    If Not (db.ISOPEN) Then flag = db.Open("", "")

    If Not flag Then
    MsgBox "Cant't open file: " & db.SERVER & " " & db.FILEPATH
    End If

    Set view = db.GETVIEW("Central Audit DB Lookup)")

    'Here i need to map the view documents data into MS-Access table.I crated same like view table fields in Access table.The main purpose of the code is to get the Lotus notes view data into Access table.

    Set view = Nothing
    Set db = Nothing
    Set session = Nothing



  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: Question on VB, Lotus notes

    I don't know if this will help you but I posted this last year when someone else was asking about lotus notes
    http://www.codeguru.com/cgi-bin/bbs/...age=0&Limit=25


  3. #3
    Join Date
    Jul 2001
    Posts
    3

    Re: Question on VB, Lotus notes

    I looked at the sample project.This is not the right answer i am looking for.



  4. #4
    Join Date
    Apr 2001
    Posts
    7

    Re: Question on VB, Lotus notes

    It depends on the version of Notes you are using now, as there are some new methods of collection data from views.

    Depending on how many documents are in the view, one of thebest methods would be to collect the documents in the view into a document collection, then loop through each one gathering the information you need and dumping it directly into your access DB.

    The export function for notes is designed for the UI and not the backend class, and can be a pain to use. Also, you need to bear in mind that the view export will only export what you can see, so if any columns are truncated, your data will also be truncated


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

Featured