Home » Developer & Programmer » Forms » jacob error (OAS 10.1.2;3 )
jacob error [message #446260] Sun, 07 March 2010 04:37 Go to next message
morchid21
Messages: 12
Registered: November 2009
Location: casablanca
Junior Member
Hi,

when I try to execute the following code an erreur occured: 2010-mars-07 13:24:51.562 ERROR>WUO-707 [OleFunctions.invoke_obj()] Impossible d'appeler la méthode : Run ; Exception
com.jacob.com.ComFailException: Invoke of: Run
Source:
Description:
Please some one can help to solve that?
Regards;

myapplication :=  CLIENT_OLE2.create_obj ('Word.Application');
        CLIENT_OLE2.set_property (myapplication, 'Visible', 1);
        mydocuments :=  CLIENT_OLE2.get_obj_property (myapplication, 'Documents');
        args :=  CLIENT_OLE2.create_arglist;
        CLIENT_OLE2.add_arg (args, v_path_client);
        mydocument :=  CLIENT_OLE2.invoke_obj (mydocuments, 'Open', args);
        CLIENT_OLE2.destroy_arglist (args);
        args :=  CLIENT_OLE2.create_arglist;
        CLIENT_OLE2.add_arg     (args, 'Generation');
        CLIENT_OLE2.add_arg     (args, v_letter_code);
        pause;
        CLIENT_OLE2.invoke  		(myapplication, 'Run', args);
        pause;
        CLIENT_OLE2.destroy_arglist (args);
        pause;
        CLIENT_OLE2.invoke	 		(myapplication,'Quit');
        pause;
        CLIENT_OLE2.Release_obj (mydocument);
        CLIENT_OLE2.Release_obj (mydocuments);
        CLIENT_OLE2.Release_obj (myapplication);
				pause;

[Updated on: Mon, 15 March 2010 23:17] by Moderator

Report message to a moderator

Re: jacob error [message #447543 is a reply to message #446260] Mon, 15 March 2010 23:21 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I get the impression from your others posts that you are still having a problem with your code.

In future, please place 'code' tags around your code.

Have you signed your jacob files? Look at http://www.orafaq.com/forum/m/434194/67467/?srch=sign+jacob#msg_434194

Have you reviewed the other client_ole and word threads? Look at http://www.orafaq.com/forum/m/423194/67467/?srch=client_ole+word#msg_423194

David
Previous Topic: Drop down list color
Next Topic: good conversion utility i found
Goto Forum:
  


Current Time: Sun Dec 08 18:06:17 CST 2024