Solved

Word Automation

Posted on 2004-08-18
5
172 Views
Last Modified: 2010-05-02
Hi experts,

I am using a lot of automation code, when this is happenning in my application, sometimes screen goes in hang state, Is this because word does not return control until its done with all the code, how do I take care of this , I was thinking of showing an animated gif on screen while application waits for the word to get things done.


sunil
0
Comment
Question by:sunilramu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 18

Expert Comment

by:JR2003
ID: 11831563
You could show word doing it's processing. The users might be really impressed with that.
Just set the application to .Visible and then .Activate it.
0
 

Author Comment

by:sunilramu
ID: 11832751
I cant do that, everything has to be done in the backgroud as per requirements.
0
 
LVL 18

Accepted Solution

by:
JR2003 earned 500 total points
ID: 11834476
Use the animation control in vb with one of the standard animations provided with vb:

    With Animation1
        .AutoPlay = False
        .Open App.Path & "\FileMove.avi"
        .Play
    End With

   'Do your thing with word here

    Animation1.Stop
0
 
LVL 18

Expert Comment

by:JR2003
ID: 11834494
You might need a DoEvents after the .Play to allow the animation to run on a separate thread.
0
 
LVL 5

Expert Comment

by:fadloun
ID: 11854514
I would like to suggest you to add progress bar to display the progress of your automations ,,,,, I think it is better than adding animated gif coz user will know that somthing is going on and he has to wait until progress finish.
regards
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question