using OLE

From: rewq <member35657_at_dbforums.com>
Date: Thu, 14 Aug 2003 04:26:23 +0000
Message-ID: <3237452.1060835183_at_dbforums.com>


[Quoted] I need send a mail using lotus notes from oracle forms. I write:



Declare
    l_session OLE2.OBJ_TYPE;
    l_args  OLE2.List_Type;
    l_db  OLE2.List_Type;
    l_doc OLE2.OBJ_TYPE;

Begin

    l_session := ole2.Create_Obj('Notes.NotesSession');     l_args := OLE2.Create_Arglist;
    ole2.Add_Arg(l_args,'');
    ole2.Add_Arg(l_args,'names.nsf');
    l_db := ole2.Invoke_Obj(l_session, 'GetDatabase', l_args); -- error     !
    ole2.Destroy_Arglist(l_args);
    l_doc := ole2.Invoke_Obj(l_db, 'CreateDocument');     ole2.Set_Property(l_doc, 'SendTo', recipient_in);

    l_args := OLE2.Create_Arglist;

    ole2.Add_Arg(l_args, 0);
    ole2.Invoke(l_doc, 'Send', l_args);
    ole2.Destroy_Arglist(l_args);

End;

after _session := ole2.Create_Obj('Notes.NotesSession');

   must arise a Lotus proccess in Task Manager, but it won't appear!... and after l_db := ole2.Invoke_Obj(l_session, 'GetDatabase', l_args);   the error arise

help me with my code or send me another one, please!

--
Posted via http://dbforums.com
Received on Thu Aug 14 2003 - 06:26:23 CEST

Original text of this message