Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Oracle Forms and OLE
Hi,
I am trying to create a document variable in Word 2000 from Forms 6i.
Whne trying to read the document variables value, i get an ORA-305500
error.
Maybe the VBA code isnt being interperated into OLE2 calls correctly
by us?
The code is driving me to despair so any good comments welcome. Cheers for help.
Code below.
DECLARE
BEGIN
OLE2.SET_PROPERTY(MyApplication, 'Visible', 'True'); -- Comment this line to hide the application.
MyVariables :=OLE2.GET_OBJ_PROPERTY(MyDocument, 'Variables');
message('Adding Document Variable');
args:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'MyVar'); OLE2.ADD_ARG(args, '12'); OLE2.SET_PROPERTY(MyVariables,'Add',args); OLE2.DESTROY_ARGLIST(args);
message('Reading Document Variable');
var:=OLE2.GET_CHAR_PROPERTY(MyVariables,'Value'); message('Var: ' || var);
END; Received on Thu Jul 18 2002 - 10:01:22 CDT
![]() |
![]() |