Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error WUO-707 template word from the client

user2608127Aug 3 2010 — edited Aug 3 2010
Hi

I'm working with Forms 11g and I need to call a Word template where you enter
data fields, the example code is as follows:

Declare
Word CLIENT_OLE2.Obj_Type;
Arg CLIENT_OLE2.List_Type;

Procedure Write_To_Bookmark (Bookmark_Name VarChar2, Data VarChar2) is
Begin
Arg:=CLIENT_OLE2.Create_ArgList;
CLIENT_OLE2.Add_Arg (Arg, Bookmark_Name);
CLIENT_OLE2.Invoke (Word,'WW7_EditGoto',Arg);
CLIENT_OLE2.Destroy_ArgList (Arg);
Arg:=CLIENT_OLE2.Create_ArgList;
CLIENT_OLE2.Add_Arg (Arg,Data);
CLIENT_OLE2.Invoke (Word,'Insert',Arg);
CLIENT_OLE2.Destroy_ArgList (Arg);
End;

Begin

Word:=CLIENT_OLE2.Create_Obj ('Word.Basic');
CLIENT_OLE2.Invoke (Word,'AppShow');

Arg:=CLIENT_OLE2.Create_ArgList;
CLIENT_OLE2.Add_Arg (Arg,'c:\paso3\ficha.dot');
CLIENT_OLE2.Invoke (Word,'FileNew',Arg);
CLIENT_OLE2.Destroy_ArgList (Arg);

Write_To_Bookmark ('NOMBRE_PRUEBA','Prueba1'); -- prueba1 ejemplo
CLIENT_OLE2.Invoke (Word,'StartOfDocument',Arg);
CLIENT_OLE2.Release_Obj (Word);

End;

*** On the server (local) works fine, but when I call the module from the client (putting the "client_") gives me the following error:

WUO-707: No se ha podido llamar al método:
AppShow Excepción
com.jacob.com.ComFailException: a COM exception
has been encountered:
At Invoke of AppShow
Description: no se ha encontrado el miembro.

Do not open the template, throwing this error which I believe means that the method does not recognize "AppShow."

Currently working with Forms 11g, Webutil, Weblogic 11.

If anyone has any solution or any other way of working with word templates on the client, would be very grateful.

sorry for the English. thanks.

Edited by: user2608127 on 03-ago-2010 8:13

Edited by: user2608127 on 03-ago-2010 8:14
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2010
Added on Aug 3 2010
2 comments
2,241 views