Help - Creating a Lotus Notes Document in a local Lotus Notes DB with VB6 
Author Message
 Help - Creating a Lotus Notes Document in a local Lotus Notes DB with VB6

Hi Folks,
for some demo reasons I have to do the following:
I have a local Lotus Notes DB on my computer, and I want to create from a
VB6 application a Lotus Notes Document in this local Lotus Notes DB to fake
some emailing (I have to do so because the demo has to run in a remote

Has someone any idea how this might be done? Did ever someone try to do so?
I couldn't find anything in the MSDN library concerning this, and I guess
there is no Lotus Notes OCX control to allow a simple connect, but I thought
when this stuf only to run remote it couldn't be that hard to do.

I found a piece of code in another forum, but this one doesn't work -
nevertheless I will copy it here, maybe someone has an idea what's missing:

Sub NotesForm_2()
    Dim session As Object
    Dim db As Object
    Dim view As Object
    Dim doc_src As Object
    Dim doc_dest As Object
    Dim item As Object
    Set session = CreateObject("notes.notessession")
    Set db = session.GETDATABASE("", "d:\notes\data\MQSWFMails.nsf")
    Set view = db.GETVIEW("All")
    Set doc_src = view.GETFIRSTDOCUMENT()
    Set item = doc_src.GETFIRSTITEM("VBN")
    'The following "RText" is a Rich Text field
    Set item = doc_src.REPLACEITEMVALUE("RText", "I want to put an
image instead of this Text")
    Call doc_src.SAVE(True, False)
    Set session = Nothing
End Sub

In my eyes this looks a little bit too simple, and this might be the reason
why it doesn't work, but on the other hand it shouldn't be that hard to do.

If you have some code that works, or an idea were I might find more info,
this would just be great!

Sun, 26 May 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Access Lotus Notes Mail DB from VB6

2. Excel link's inside of Lotus notes Document

3. Read Lotus Notes Mail db (xxx.nsf) from VB60 code

4. VB and Lotus Notes... DB Access

5. Lotus Notes DB

6. CR 8 exporting reports to Lotus Notes DB

7. Lotus Notes DB

8. Lotus Notes Driver for Ole DB

9. Lotus Notes DB

10. Lotus Notes DB

11. Access 2000 to create new Lotus Notes calendar item

12. Lotus notes R5 and vb6


Powered by phpBB® Forum Software