Re: Calling Word Macros from Ole2.Invoke. Possible??

From: Adrian Klingel <klingela_at_nospam.nt.com>
Date: 1998/03/31
Message-ID: <3521007D.9D929CAC_at_nospam.nt.com>#1/1


Rod,

[Quoted]   Ole2.invoke is broken. The bug fix will be in the next release of Developer/2000, 2.1. It's due out at the end of April.

Adrian

Rod Coleman wrote:

> Hi,
>
> I have an Oracle Forms 5.0 application which opens a document in Microsoft
> Word (Office 95 Version) using the Forms_OLE and Ole2 packages. This
> document contains a macro which I would like to call (run) from Oracle
> Forms. Is this possible?? I have tried this code below, but to no avail.
> Can anyone shed light on how (if) I can do this??
>
> DECLARE
> hOLEobj ole2.obj_type;
> hOLEarg ole2.list_type;
>
> BEGIN
> ....
> hOLEarg := Ole2.Create_Arglist;
> /* "UpdateAllFieldSource" is the macro name */
> Ole2.Add_Arg( hOLEarg, 'UpdateAllFieldSource' );
> Ole2.Invoke( hOLEobj, 'Call', hOLEarg );
> Ole2.Destroy_Arglist( hOLEarg );
> ....
> END;
>
> TIA,
> --
> Rod Coleman
> Information Technologist
> BHP Information Technology
> Email: coleman.rod.rf_at_bhp.com.au
Received on Tue Mar 31 1998 - 00:00:00 CEST

Original text of this message