Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delay Before closing word.
Message
De
24/06/1997 09:47:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037494
Message ID:
00037573
Vues:
31
>>I have a function that opens MS word, creates a document, and prints it completely n the background. I would like for the function to close down Word when it is finished printing. The problem is that if I issue the command to close Word right after the command to print, Word gives a message asking if I want to close and cancelthe print job. (Word is still busy printing when I issuethe command). I need to delay the command to close for several seconds, preferrably during which control is returned to my program. A timer object seems the logical solution, but I cannot reference the Word object outside of the method that instantiates it. Is it kosher to declare a OLE object as global so I can reference it from a timer? Any other suggestion as to how to tackle this? Thanks in advance for any help.
>>
>>Erik
>
>Erik, I don't have a list of WordBasic commands, but isn't there one that will check for an active print job? I did this years ago with WordPerfect - the program set up a loop that checked until the print job was sent to the printer and then closed WP.
>
>HTH
>Barbara

I have accomplished essentially the same thing with Lister's suggestion. (Turning background printing off). This essentially leaves control with Word until printing is finished and then returns it to my program, where the next command closes Word. Thanks for the suggestion.

Erik
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform