Courtesy of Google.  This seems plausible, but is untested:

http://support.microsoft.com/kb/240809
How to prevent the "Switch To" or "Application Busy" error messages using OLE 
Automation

This error message usually occurs because the OLE activated application has an 
open dialog box and is expecting user input. This error message can be 
eliminated by using the property OLERequestPendingTimeout. This property 
specifies the amount of time after an Automation request is made before a busy 
message is displayed. The default is five seconds and is specified in 
milliseconds. By setting the timeout to 0, Microsoft Visual FoxPro will wait 
indefinitely for the other application. The busy message will not be displayed 
whether the Automation request is pending or if a mouse or keyboard event 
occurs.

     Create a program and enter the following code.

     oWord=CREATEOBJECT("Word.Application")
     APPLICATION.OLERequestPendingTimeout = 0   && 0 means no busy error message
     WITH oword                                 && Change to 100 to see busy
                                                && message
        .Documents.ADD
        .Dialogs(88).SHOW                       && Open the Word Print dialog
        .APPLICATION.QUIT(0)                    && Quit and don't save changes
     ENDWITH
                                                
--
David Mitchell

On 5/5/2011 16:53, Devon McCormick wrote:
> This action cannot be completed because the other program is busy
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to