Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Oracle Forms and OLE

Oracle Forms and OLE

From: Mark <markg_at_mymail.co.uk>
Date: 18 Jul 2002 08:01:22 -0700
Message-ID: <ddb31653.0207180701.231199dd@posting.google.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US