CLIENT_OLE2 v/s Word , ERROR in the package
398814Oct 22 2003 — edited Oct 24 2003Hi ...
I used the package webutil (very useful) , but when execute
The next code :
Code
goto_marcador('MC_LOCALIDAD_01', 'Espanol');
inserttext (<any value>, 'Espanol');
Procedures
procedure Goto_marcador (marcador in varchar2, idioma varchar2) is
arglist CLIENT_OLE2.list_type;
begin
arglist := CLIENT_OLE2.create_arglist;
CLIENT_OLE2.add_arg (arglist, marcador);
if idioma = 'Ingles' then
CLIENT_OLE2.invoke (obj_hnd, 'EditFind', arglist);
else
CLIENT_OLE2.invoke (obj_hnd, 'Edici�nBuscar', arglist);
end if;
CLIENT_OLE2.destroy_arglist (arglist);
end;
procedure inserttext (txt in varchar2, idioma varchar2) is
arglist CLIENT_OLE2.list_type;
begin
arglist := CLIENT_OLE2.create_arglist;
if not txt IS NULL THEN
CLIENT_OLE2.add_arg (arglist, txt);
else
CLIENT_OLE2.add_arg (arglist, ' ');
end if;
if idioma = 'Ingles' then
CLIENT_OLE2.invoke (obj_hnd, 'insert', arglist);
else
CLIENT_OLE2.invoke (obj_hnd, 'insertar', arglist);
end if;
CLIENT_OLE2.destroy_arglist (arglist);
end;
Appears the next error in the Java Console:
JInitiator: Versi�n 1.3.1.9
Usar versi�n JRE 1.3.1.9 Java HotSpot(TM) Client VM
Directorio local del usuario = C:\Documents and Settings\hulloa
Configuraci�n del delegado: sin delegado
JAR cache enabled
Location: C:\Documents and Settings\hulloa\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Loading http://mlfwebsvt.metlife.cl:7778/forms90/webutil/webutil.jar from JAR cache
Loading http://mlfwebsvt.metlife.cl:7778/forms90/webutil/jacob.jar from JAR cache
Loading http://mlfwebsvt.metlife.cl:7778/forms90/java/f90all_jinit.jar from JAR cache
RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
Loading http://mlfwebsvt.metlife.cl:7778/forms90/java/iconic_files.jar from JAR cache
connectMode=HTTP, native.
La versi�n del applet Forms es: 90290
2003-oct-22 12:48:05.827 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
null
2003-oct-22 12:48:05.827 ERROR>WUO-707 [OleFunctions.invoke_obj()] Unable to invoke Method: insert; Exception
com.jacob.com.ComFailException: A COM exception has been encountered:
At Invoke of: insert
Description: No se ha encontrado el miembro.
2003-oct-22 12:48:11.171 ERROR>WUO-707 [OleFunctions.invoke_obj()] Unable to invoke Method: filesaveas; Exception
com.jacob.com.ComFailException: Invoke of: filesaveas
Source: Microsoft Word
Description: Word no puede guardar este archivo porque est� abierto en otro lugar.
(C:\TEMP\NCO-1131.DOC)
2003-oct-22 12:48:14.734 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 4 not found in the cache
2003-oct-22 12:48:14.796 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 4 not found in the cache
2003-oct-22 12:48:14.796 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 4 not found in the cache
2003-oct-22 12:48:14.796 ERROR>WUC-12 [OleFunctions.invoke_obj()] Object Cache Error: Object is not the expected JacobObject,Vector type
2003-oct-22 12:48:14.937 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 4 not found in the cache
2003-oct-22 12:48:14.984 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 4 not found in the cache
2003-oct-22 12:48:14.984 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 4 not found in the cache
2003-oct-22 12:48:14.984 ERROR>WUC-12 [OleFunctions.invoke_obj()] Object Cache Error: Object is not the expected JacobObject,Vector type
Why the method Insert is working bad???
The file jacob.jar is signed correctly
In the file *.dot exist the marker MC_LOCALIDAD_01 , however CLIENT_OLE2.invoke (obj_hnd, 'EditFind', arglist); , not found , why???
The method is valid??
Where found more descriptions of this method or all methods of CLIENT_OLE2??
Thanks very much
Regards
Hector
PD : Sorry my english