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