CLIENT_OLE2 NOT WORKING IN Forms Version 10.1.2.0.2 [message #564593] |
Sun, 26 August 2012 06:51 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/149761.png) |
deepakmannazhi
Messages: 137 Registered: February 2010 Location: Dubai, UAE
|
Senior Member |
![deepakmannazhi@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
Dear All,
How are you ?
We are using Quote:CLIENT_OLE2 for invoking Outlook application from Forms.
It is working properly in Quote:Forms Version 9.0.4.0.19 .
But it is not working In Quote:Forms Version 10.1.2.0.2 .There is an error in java console,while executing Quote:client_ole2.create_obj ('Outlook.Application')
Quote:java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
All other webutil functions are working properly.
Can anyone guide me
[Updated on: Sun, 26 August 2012 06:54] Report message to a moderator
|
|
|
Re: CLIENT_OLE2 NOT WORKING IN Forms Version 10.1.2.0.2 [message #564629 is a reply to message #564593] |
Mon, 27 August 2012 02:41 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/149761.png) |
deepakmannazhi
Messages: 137 Registered: February 2010 Location: Dubai, UAE
|
Senior Member |
![deepakmannazhi@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
Dear All,
here is the code
PROCEDURE send_mail (p_file VARCHAR2)
IS
v_temp VARCHAR2 (1000);
objoutlook client_ole2.obj_type;
objmail client_ole2.obj_type;
objarg client_ole2.list_type;
objattach client_ole2.obj_type;
objattach1 client_ole2.obj_type;
args ole2.list_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);
objattach := client_ole2.get_obj_property (objmail, 'Attachments');
objarg := client_ole2.create_arglist;
client_ole2.add_arg (objarg, p_file);
client_ole2.invoke (objattach, 'Add', objarg);
client_ole2.set_property (objmail, 'To', ' ');
client_ole2.invoke (objmail, 'Display');
-- client_ole2.invoke (objmail, 'Send');
client_ole2.RELEASE_OBJ (objattach);
client_ole2.RELEASE_OBJ (objmail);
client_ole2.RELEASE_OBJ (objoutlook);
client_ole2.destroy_arglist (objarg);
EXCEPTION
WHEN OTHERS
THEN
MESSAGE (SQLCODE);
MESSAGE (SQLERRM);
END send_mail;
|
|
|
|
|
|
|
Re: CLIENT_OLE2 NOT WORKING IN Forms Version 10.1.2.0.2 [message #565113 is a reply to message #564593] |
Thu, 30 August 2012 12:08 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Kaeluan
Messages: 179 Registered: May 2005 Location: Montreal, Quebec
|
Senior Member |
|
|
Hi,
I just test your code on my App Server 10.1.2.3 and it's working perfectly.
Your problem seem to be related to the jacob library that is required to invoke client application.
Are you sure you have privilege on the folder where the jacob is downloaded from the app server (ex: C:\Program Files\Java\jre6\bin)?
|
|
|
|
|