Home » Developer & Programmer » Forms » Does mail invoked by using client_ole2 does not work in form run from windows 7? (oracle 9i)
Does mail invoked by using client_ole2 does not work in form run from windows 7? [message #600868] Wed, 13 November 2013 06:18 Go to next message
rocky_007
Messages: 36
Registered: March 2012
Location: India
Member
Dear Gurus,

I am facing a problem that one procedure when called from Windows XP is invoking a mail and the same form when running on Windows 7 is not working and giving some WUO Error. The procedure is enclosed below.

Any solution will be highly appreciated. Please write if additional information is required.

DECLARE
  objOutlook client_ole2.OBJ_TYPE; 
  objMail client_ole2.OBJ_TYPE; 
  objArg client_ole2.LIST_TYPE; 
  
  Attachments client_OLE2.OBJ_TYPE;
  Attachment_dummy client_OLE2.OBJ_TYPE;
	
  email_id1 EMP_MASTER.PMAIL_ID%TYPE;
  email_id2 EMP_MASTER.PMAIL_ID%TYPE;
begin
...
  objOutlook := client_ole2.CREATE_OBJ('Outlook.Application'); 
  objarg := client_ole2.CREATE_ARGLIST; 

  client_ole2.ADD_ARG(objarg,0);
  objMail := client_ole2.INVOKE_OBJ(objOutlook,'CreateItem',objarg); 
  client_ole2.DESTROY_ARGLIST(objarg);  
  client_ole2.SET_PROPERTY(objmail,'To',vmail);
  --client_ole2.SET_PROPERTY(objmail,'To','abc@xyz.com');
  /*if var3 is not null then
  	client_ole2.SET_PROPERTY(objmail,'cc',var3);
   end if;	*/
  client_ole2.SET_PROPERTY(objmail,'Subject','mail subject' ); 
  client_ole2.SET_PROPERTY(objmail,'Body','mail body'); 
  

  client_ole2.INVOKE(objmail,'Send'); 
  client_ole2.INVOKE(objmail,'Display'); 
  client_ole2.RELEASE_OBJ(objmail); 
  client_ole2.RELEASE_OBJ(objOutlook); 
...

Please help.
Re: Does mail invoked by using client_ole2 does not work in form run from windows 7? [message #601024 is a reply to message #600868] Thu, 14 November 2013 14:02 Go to previous message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I wouldn't know the answer, sorry.

However, some people might find it useful if you actually explained this:Quote:

is not working and giving some WUO Error.

What is exactly "some WUO Error"? Please, specify its code and description (don't use your own words, adjectives & attributes, this is not a literature class).
Previous Topic: pass value of current cursor location field from one form to another
Next Topic: How to close an open folder
Goto Forum:
  


Current Time: Thu Apr 18 18:43:10 CDT 2024