Re: OLE connection to Word 97

From: Stepanoff Dmitry <moprok_at_ropnet.ru>
Date: 1997/10/10
Message-ID: <01bcd54d$da9f43c0$0100a8c0_at_moprok.ropnet.ru>#1/1


Tony Brown <tb_at_arete.demon.co.uk> ÚÁÐÉÓÁÎÏ × ÓÔÁÔØÀ <Y1SeTCAyd7O0EwIA_at_arete.demon.co.uk>...
> Hi,
>
> We are using Reports 2.5 to generate files which we want to incorporate
> into word 97. The reports are either portrait or landscape and we
> therefor have a requirement to do one of the following using OLE2 :-
>
> a) Open a word 97 document with a particular template (with landscape
> settings and margins set) and insert an ascii file or
>
> b) Open a word 97 document with the file name and invoke a series of
> instructions to change the format and layout or
>
> c) Open a word 97 document with a file name and invoke a macro (to set
> up layout)
>
> We can start up the OLE link and invoke Word OK. We can also start word
> with the proper file name. However we cannot find the instructions
> (which will be invoke or set_property presumably) to communicate further
> with Word. We opened the OLE with Word.basic as the object.
>
> Can anyone help with some sample code or can someone point us to where
> the list of Word97 OLE properties is documented.

You can execute any WordBasic instruction using DDE package procedure Execute.
If this method is acceptable, follow this : First of all, you must invoke Word, then create conversation by calling DDE.Initiate with topic
'SYSTEM' and application 'WinWord'.

As I know, WordBasic is Microsoft Basic complaint language. Commands, specific
to word proccessing, could be found in macros related dialogs ( I'm using russian version of Word and can not translate dialog names to english ).

After the work is done, you should close conversation.

Please, let me know if this helps.

Best regards, Dmitry, moprok_at_ropnet.ru

PS: I'm interesting in using OLE technology with Developer products and would be glad to
know about another ways to do this with OLE Automation. As I know, OLE automation severs
must allow me to do the same. If you have any examples of using OLE, please send me
some of them. Received on Fri Oct 10 1997 - 00:00:00 CEST

Original text of this message