Re: FORMS_OLE and OLE2 Packages working with Word6

From: Hadar Paiss <hpaiss_at_netvision.net.il>
Date: 1996/05/30
Message-ID: <31AE8CCE.34DA_at_netvision.net.il>#1/1


Juergen Hiss wrote:
>
> I have the following problem:
>
> When I define an ORACLE table-field of type LONG RAW and access
> it via Forms 4.5 I'm (at least for the moment) not able to modify
> that object via OLE-Automation.
>
> The details:
> I defined a Forms 4.5-item of type OLE-Container and initialized
> it with a (more or less empty) Word6 document. The OLE class property
> of the item remained to NULL.
>
> The next commands (behind a button) were:
>
> forms_ole.activate_server ('ole_item_name');
> doc:= forms_ole.get_interface_pointer ('ole_item_name');
>
> Now, when I tried to send WordBasic commands to that document, e.g.
>
> OLE2.Invoke (doc, 'Insert', arglist);
>
> I had no success.
>
> I think, it has to do with the OLE-Class type of the item.
> When I use the
> OLE2.create_object (serverType)
> function to create a new file-based Word document, I have to use the
> server-type "Word.Basic" instead of "Word.Document", otherwise I can't
> manipulate the document. Doing the same with the OLE-Class type of the
> item
> (=Word.Basic) the stored Word documents are no longer accessible.
>
> Who can help me? Where's my mistake ?

I think the problem is that forms 4.5 does not support OLE automation, so if you create a word6.document it can be a ducument only item.

        Hadar Paiss Received on Thu May 30 1996 - 00:00:00 CEST

Original text of this message