Re: OLE, Word95 and Word97 problem
Date: Mon, 19 Apr 1999 08:29:26 GMT
Message-ID: <7fepgv$p24$1_at_nnrp1.dejanews.com>
In Visual Basic, I had the same problem. I found out that you could use a command like OpenObject (or something) first - if that returned an error, create an object instead. Works fine - and there ought to be a similar solution for Forms.
In article <7fe42r$72j$1_at_nnrp1.dejanews.com>,
nwgarside_at_my-dejanews.com wrote:
> Hi,
>
> I have a Forms 4.5 application that currently uses the OLE2 package to talk
> to Word95. I'm in the process of upgrading the application to use Word97 but
> have come across a small problem, in that replacing the line:
>
> Word95App := OLE2.CREATE_OBJ('Word.Basic'); --Starts Word95
>
> with the following:
>
> Word97App := OLE2.CREATE_OBJ('Word.Application'); --Starts Word97
>
> ...starts a new instance of Word97 every time I call this line! Word95 didn't
> behave the same way; calling Word.Basic always used the same instance of
> Word95, whereas calling Word.Application creates a new instance of Word97
> every time Word.Application is called.
>
> Does anyone know how to get Word97 to behave the same as Word95, so that
> calling OLE2.CREATE_OBJ('Word.Application') (or some other function) returns
> a handle to an already running instance of Word97?
>
> Thanks for your time...
>
> Neil W. Garside (Brisbane, Australia)
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Mon Apr 19 1999 - 10:29:26 CEST
