-
Has anyone else encountered this problem. Using Office automation within VB, the user starts an Office process, and while it is processing, does something that causes focus to go somewhere else, they get this message:
Component Request Pending
This action canot be completed because the other application is busy. Choose 'Switch to' to activate the busy application and correct the problem.
Switch to... Retry
Sometimes this locks up the automation process and we have to kill the application and/or the Office process. We are getting this on a couple of projects, developed by different people.
-
Yes I have experienced the same thing, though I haven't found a good fix for it yet. If you find anything please share. For the mean time I just prompt a msgbox not to do anything until either the msg goes away or the doc prints or whatever.
-
Not much info on our problem. I did find a couple of papers on the Microsoft website that might pertain. One talks about using the app.OLEServerBusyTimeout and app.OLERequestPendingTimeout properties to delay the trigger of the switch/retry error. The other said that in older versions of Word, it is caused by AutoClose macros calling WordBasic commands that aren't available because of another occurance of Word running in the foreground. Since the automated word object is hidden, there is nothing to switch to and it hangs up. Let me know if that helps you at all.