Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6.0 and Word97
Message
De
09/11/1998 13:34:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155685
Message ID:
00155837
Vues:
20
>For those of you who have done some development with VFP and Word97, I would like to know if you can help with the following:
>
>I generate bills in Word97 from VFP. However, when I try to perform a oWord.ActiveDocument.PrintOut followed by Word.ActiveDocument.Close and oWord.Quit. It appears that the print request has not had time to queue properly. I know that I can always place my program in a wait state and then attempt to close my document and Word, but that is bound to fail since my generated documents can vary in size. Is there any way through OLE automation that I can wait for the print job to queue prior to close/quitting commands to execute in Word?
>
>Thank you

turn Background printing off while you print....

oWord.toolsoptionsprint(,,,,,,,,,,,0,,,) && Turns off background printing
oWord.toolsoptionsprint(,,,,,,,,,,,1,,,) && Turns it back on

This makes the print command 'synchronous'.
HTH
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform