Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > using OLE
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 6th July 11:06
rewq
External User
 
Posts: 1
Default using OLE



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
  Reply With Quote


 


2 6th July 11:07
daniel morgan
External User
 
Posts: 1
Default using OLE



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

--
Daniel Morgan
http://www.outreach.washington.edu/e...ad/oad_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666