Re: Forms 4.5 and OLE2 automation of Word

From: Lang Richard <richard_at_dse.it>
Date: 1997/04/23
Message-ID: <335DABCE.1B51_at_dse.it>#1/1


In every case it opens only an instance of WORD, it does not load the executable anymore.

Also you must create the OLE-Object to manipulate your document.

If you want to know if WORD is already or still (after releasing object) open, you can use DDE:
Try to open a canal to WORD/SYSTEM without DDE.APP_BEGIN. If it raises the DDE.DMLERR_NO_CONV_ESTABLISHED you can be sure that WORD is not open else if you can open a canel, WORD is open:

FUNCTION is_word_open RETURN BOOLEAN
 canal PLS_INTEGER;
BEGIN
  canal:=DDE.INITIATE ('WINWORD', 'SYSTEM');   DDE.TERMINATE (canal);
  RETURN (TRUE);
 EXCEPTION
   WHEN DDE.DMLERR_NO_CONV_ESTABLISHED
     THEN RETURN (FALSE);
END; Received on Wed Apr 23 1997 - 00:00:00 CEST

Original text of this message