Re: using OLE

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Thu, 14 Aug 2003 15:39:40 -0700
Message-ID: <3F3C0FAB.11330A7E_at_exxesolutions.com>


rewq wrote:

> 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

Help us with the version of Forms, please! ;-)

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Fri Aug 15 2003 - 00:39:40 CEST

Original text of this message