Calling Word Macros from Ole2.Invoke. Possible??

From: Rod Coleman <coleman.rod.rf_at_bhp.com.au>
Date: 1998/03/31
Message-ID: <01bd5c80$10d7f680$a88b1286_at_itntl_bigbod.itntl.bhp.com.au>#1/1


Hi,

[Quoted] I have an Oracle Forms 5.0 application which opens a document in Microsoft [Quoted] 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. [Quoted] 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