SBendBuckeye
Programmer
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
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