DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Word 2010 Automation Using VB6

  1. #1
    Join Date
    Aug 2004

    Question Word 2010 Automation Using VB6

    I have not had any problem using my VB6 application to automate Word in the past. It works for Word 2003 and 2007. However, I just upgraded to a new computer (Win 7 Pro) and Office 2010. Now when I try to export some data to Word, I get the following error message...

    "This action cannot be completed because the other application is busy. Choose 'Switch To' to activate the busy application and correct the problem"

    Choosing the 'Switch To' does not work as the error message just repeats itself. Then I press the 'Cancel" button in the error message box and receive the following message...

    "Error -2147418111 Automation error. Call was rejected by the callee."

    My application automates Excel as well with no problems with Excel 2010.

    Has anyone experienced a similar problem when activating Word 2010 from VB6? Any suggestions?

  2. #2
    Join Date
    Aug 2004
    PS. This problem only happens when I create a large file and a Word error occurs to indicate that the file is too large to perform a spelling and grammar check. When I turn off spell & grammer check, the error does not occur.

    When I create smaller files, even with the spell and grammar check turned on it works okay.

  3. #3
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    I realize this is an old support message, but setting the OLERequestPendingTimeout to 0, as described here, might work for you. I figure it is worth a shot. I googled your error message with Word 2010 and I really didn't get anything specific to Word 2010. These two were about the best of the lot of returns that I did get.

  4. #4
    Join Date
    Aug 2004
    Hack - It sounds like the fix described in your first reference is what might work best. I will try setting the OLERequestPendingTimout to 0. Will post how this solution works. Thanks!!!

  5. #5
    Join Date
    Aug 2004
    Hack- Your suggeston appears to have fixed the issue. Setting OLERequestPendingTimeout = 0 did the trick! Thanks again.

Similar Threads

  1. Using VB6 to transfer .BMP file to WORD 2003
    By Lennie in forum VB Classic
    Replies: 5
    Last Post: 11-12-2008, 05:32 AM
  2. my problems with word and VB6!!!
    By svn in forum VB Classic
    Replies: 1
    Last Post: 08-19-2005, 06:05 PM
  3. Editing a word template form from VB6
    By Cola in forum VB Classic
    Replies: 2
    Last Post: 08-09-2005, 04:24 PM
  4. another word in vb6 question
    By svn in forum VB Classic
    Replies: 1
    Last Post: 07-08-2005, 09:16 AM
  5. Word Automation In ASP
    By Nick Hall in forum ASP.NET
    Replies: 4
    Last Post: 01-23-2003, 11:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center