Word automation from Acc97

J

Juergen Grieb

Hi,

my app starts an instance of Word in an Acc97 form. So far I have
complete control over Word, except in the circumstance that Word has
other "windows" (including dialogs like the printing dialog) open.

Searching the web I found no reliable way to get Word's status in case
another Word window is open. So I thought, that finding out if Word
has other windows open would be enough. Since I cannot get that
information from Word (it doesn't respond if a dialog is open) I
thought that API would do the trick.

Unfortunatly, I have no experience at all with API. FindWindowEx and
EnumChildWindows seems like what I need, but I wasn't able to figure
out how to use them to get the wanted information.

Can anybody please tell me how to get all open "windows" of an
existing Word instance?

Thanks a lot!

Juergen
 
J

Juergen Grieb

Hi Arvin,
By using an api, you can find out if any app is running. This works in
Access 97:

http://www.mvps.org/access/api/api0007.htm

Thanks for your answer. Unfortunately, that is not what I'm looking
for.

I know Word is runnning, because my app starts it :) I even have a
handle to the main Word window.

I'm looking for a way to find out if my Word instance has other
windows open besides its main window.

Juergen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top