Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple instances of Word running concurrently - how do I track them

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
Client has a system that only supports external objects indirectly via ActiveX controls hidden on a form. There is no way that I know of to store an object reference.

They need to pull a Word template into their reporting process. I can do that OK keeping the application object hidden.

Do I need to worry about anything like the following:

1. Because the system doesn't support objects, I am using GetObject to attach to a running Word object.

2. If the report is runing a long time and a user opens Word can I iterate GetObject somehow until I have the right one?

3. I could open and close Word for every record if I have to but I want to avoid the overhead if possible but I haven't had to deal with multiple instances before.

Thanks for any help you can give me!

PS. I have code to get the hWnd if that helps at all.

Have a great day!

j2consulting@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top