Re: Calling Word Macros from Ole2.Invoke. Possible??
Date: 1998/03/31
Message-ID: <01bd5cf9$49a98360$a88b1286_at_itntl_bigbod.itntl.bhp.com.au>#1/1
Hi Adrian,
Yeah, I was aware of the Ole2 problems with Forms 5.0 in Developer/2000 Release 2.0. I am actually using a pre-release version of Developer/2000 Release 2.1 (Forms 5.0.6.4.1 - Beta) to attempt to circumvent all the Ole2 problems. Ole2.Invoke appears to be working again, however I'm unsure if the "Call" WordBasic command can be invoked through Ole2.Invoke.
Has anyone done this??
Cheers,
Rod.
Adrian Klingel <klingela_at_nospam.nt.com> wrote in article
<3521007D.9D929CAC_at_nospam.nt.com>...
> Rod,
>
> 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
