Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP!!!! OLE is driving me crazy!!!!
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00018827
Message ID:
00018862
Views:
36
>I have spent over fifteen hours trying to solve this problem. I have posted questions, but no response, PLEASE send me in the right direction.
>
>I want to open a mail merge document in word, then pass control to Word. Of course after opening the document, my program continues execution and Word simply quits as soon as it starts. I have seen several other programs that do this, They start Word, Word gets the focus, The sending app stays open in the background, does'nt care if you minimize Word, close it, or anything else.
>
>I have numerous books, and they all give the same situation. Open Word, Open Document, Print Document, all in the background. That won't work for me.
>
>My very lame work around, is to have a modal window open in my app, that causes my program to stop execution until the user presses OK on the form. This seems to be just a 'stop gap' measure. Other programs do not do this.
>
>Any help would be GREATLY appreciated.

Not sure if the following methods are supported by word but may be worth a try

setfocus or zorder (both of which should keep word on top)

My guess is however, that the default way you are using ole automation to get word stared is set to having word in the background. There is probably a setting for the createobject line so that word will run in the foreground.
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Reply
Map
View

Click here to load this message in the networking platform