Solved

Word Automation

Posted on 2004-08-18
5
174 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

615 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