Forms4.5: Argument passing in OLE automation with Word97?

From: Ale¹ Okorn <ales.okorn_at_aster.si>
Date: Mon, 02 Aug 1999 16:52:56 +0200
Message-ID: <37A5B0C8.D2AA3BAD_at_aster.si>



I am trying to insert table into Word97 document with OLE2 automation. My code looks like this:

declare
 ...
 MySelection OLE2.OBJ_TYPE;
 MyTables OLE2.OBJ_TYPE;
 MyRange OLE2.OBJ_TYPE;

begin
....

MyRange:=OLE2.GET_OBJ_PROPERTY(MySelection,'Range');

MyTables:=OLE2.GET_OBJ_PROPERTY(MyDocument,'Tables');

args:=OLE2.CREATE_ARGLIST;

OLE2.ADD_ARG(args,MyRange);
OLE2.ADD_ARG(args,4);
OLE2.ADD_ARG(args,2);

MyTable:=OLE2.INVOKE_OBJ(MyTables,'Add',args);
....

When running this code, I get error ORA-305500. After reading online help, I realized I can only pass number and varchar2 parameters, but MyRange is OLE2.OBJ_TYPE.
Can anyone show me how to insert table into Word97 document with OLE automation?

Any help would be greatly appreciated.

Best regards, Alesh Okorn Received on Mon Aug 02 1999 - 16:52:56 CEST

Original text of this message